groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Theodorou" <blackd...@gmx.org>
Subject Aw: Re: "External" closures, why?
Date Wed, 02 Dec 2015 08:57:28 GMT
[...]
> So, just for yet another better understanding, whenever there is a
> code block (-> closure) after a function call, it automatically gets
> appended as additional argument?

yes, unless you include expressions with "new" in the term function call. Because in that
case we do anonymous inner classes like in Java. I am mentioning this explicitly, because
this is something we had to change (well, quite long ago already) after 1.0 I think.. maybe
in 1.8... I don't remember clearly.

Mime
View raw message