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

Re: assign to magic name-of-function variable instead of "return"

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
February 8, 2001 19:19
Subject:
Re: assign to magic name-of-function variable instead of "return"
Message ID:
20010208211924.D17607@chaos.wustl.edu
On Tue, Feb 06, 2001 at 05:01:03AM +1100, Damian Conway wrote:
>    > Really?  Are lexicals in the sub visible in the post handler?
> 
> No. Only the original arguments and the return value.
>    
>    > (Of course I realize *F does not illustrate this...)
> 
> Exactly. ;-)
> 
> Actually, I do agree that Perl 6 ought to provide a universal "destructor"
> mechanism on *any* block. For historical reasons, I suppose it should be
> C<continue>, though I would much prefer a more generic name, such as
> C<cleanup>.

C<mop> ? :-)

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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