[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-user
Subject:    Re: [groovy-user] Closures compared to anonymous inner classes
From:       John Wilson <tug () wilson ! co ! uk>
Date:       2004-08-28 8:36:33
Message-ID: 5DD40628-F8CD-11D8-A855-000A95B9441C () wilson ! co ! uk
[Download RAW message or body]


On 13 Aug 2004, at 04:15, John Stump wrote:

> I also agree with this. Is there any use case where you would
> want a closure to create local variables?
>
> john
>

Sorry to be so long following up on this, John.  I'm just back from 
holiday:)

Closures need local variables if they are to be used recursively or to 
be thread safe. In general you need on stack data in both these cases.

John Wilson
The Wilson Partnership
http://www.wilson.co.uk


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic