On 07/08/2012 11:12 AM, Damian Conway wrote: > Father Chrysostomos pointed out: > >> I said when, not whether. :-) > > Isn't that just typical of me: confusing ontology with chronology. ;-) > > I'm afraid don't know the implementation details for Rakudo. It may be > bound as the surrounding block is entered, or perhaps just-in-time when > the Code object is first accessed in some way.
When the surrounding block is entered. http://perlcabal.org/syn/S04.html#When_is_a_closure_not_a_closure "All remaining blocks are conceptually cloned into closures as soon as the lexical scope containing them is entered." Cheers, Moritz