How to assign the return value of a CIS
Neal Gafter
neal at gafter.com
Fri Jan 8 08:57:36 PST 2010
On Fri, Jan 8, 2010 at 4:55 AM, Peter Levart <peter.levart at marand.si> wrote:
> No, the syntax is specified as a statement - not an expression. Because it
> looks like a statement it is a statement. If it was an expression then it
> might confuse people and possibly compiler too. So unfortunatelly no return
> values from this syntax.
>
Right. If you want to do something with the result value, then use the
normal method invocation syntax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20100108/b6db9f7e/attachment.html
More information about the closures-dev
mailing list