groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Automatic closure coercion and delegate
Date Wed, 18 May 2016 07:11:43 GMT
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