I don’t think there’s a bug but it may be appear so depending on how you test the function. For example:
get func() — will set it to the return val so don’t do that to test this Additionally the result is district from the value of the function so: put func() is the result — will be false For clarity here’s the tests that pass for this build: https://github.com/livecode/livecode/blob/develop/tests/lcs/core/engine/return.livecodescript Cheers Monte > On 1 Jul 2016, at 7:34 AM, Mike Kerner <mikeker...@roadrunner.com> wrote: > > well, "return error x" gives me a syntax error, and the documentation > specifies the syntax I describe, and indicates that it changed in 8.1.0, so > before I do anything, why don't we clarify what we think it's supposed to > be, first. > > On Thu, Jun 30, 2016 at 5:30 PM, Peter TB Brett <peter.br...@livecode.com> > wrote: > >> On 30/06/2016 22:20, Mike Kerner wrote: >> >> in a function, In a function, return x for error does nothing - the >>> function terminates without returning a value, and it and the result are >>> empty. return x for value and return x do the same thing - the container >>> assigned gets the return value gets x, the result gets nothing. >>> >> >> That sounds like a bug to me... "return x for error" in a function is >> supposed to terminate the function without returning a value, and set the >> result to x. Can you please file a bug with your recipe? >> >> Peter >> >> -- >> Dr Peter Brett <peter.br...@livecode.com> >> LiveCode Technical Project Manager >> >> LiveCode 2016 Conference https://livecode.com/edinburgh-2016/ >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode