transparent lambda

Neal Gafter neal at gafter.com
Wed Dec 30 08:01:03 PST 2009


On Wed, Dec 30, 2009 at 6:40 AM, Rémi Forax <forax at univ-mlv.fr> wrote:

>  You can also use 'return' as a suffix and the name of the function (in a
> separate scope) as prefix.
>
> int f() {
>   lambda() {
>     f.return 42;
>   }.invoke();
> }
>

You could, but the resulting construct is not TCP-transparent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091230/6da72c4f/attachment.html 


More information about the closures-dev mailing list