groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme Rocher <graeme.roc...@gmail.com>
Subject Re: Automatic closure coercion and delegate
Date Mon, 23 May 2016 07:23:44 GMT
+1 this seems like a great idea.

Graeme
On Wed, May 18, 2016 at 9:11 AM, Jochen Theodorou <blackdrag@gmx.org> wrote:
On 18.05.2016 08:46, Peter Ledbrook wrote:
> I'm not even sure there's a right answer to this. I guess I would expect
> local variables defined outside of the closure to be accessible within
> it. Would that work with DELEGATE_ONLY?

yes, static scoping is done by the compiler, before any runtime can
fiddle around with redirected calls using the delegation strategy

bye Jochen
Mime
View raw message