develooper Front page | perl.perl6.language | Postings from February 2001

Re: POST blocks (like END, but in a sub or sub-like scope)

Thread Previous | Thread Next
From:
John Porter
Date:
February 8, 2001 13:38
Subject:
Re: POST blocks (like END, but in a sub or sub-like scope)
Message ID:
20010208163832.B25932@min.net
David L. Nicol wrote:
> 
> Do you agree that they shouldn't get tacked on until execution passes their
> definition, unlike END blocks which get appended when they are parsed?

Yes, absolutely; that is an important point.

END blocks are different because there is only ever one activation record
for the file (ignoring threads); lexicals in the file are known at
compile time, and so are visible to the END block.
Lambdas deserve post blocks too. :-)

-- 
John Porter

You can't keep Perl6 Perl5.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About