Damian Conway wrote:
> 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>.
Both of the exception handling RFCs discuss an "always" block that is
equivalent to a universal destructor mechanism on any block.
Cleanup is a nice word, but maybe sometimes you want to do something that
doesn't really fit the connotation of cleaning up. Whereas "always" just says
when it is done.
return ( $stuff, $morestuff, $whatever ) always close F;
--
Glenn
=====
Even if you're on the right track,
you'll get run over if you just sit there.
-- Will Rogers
----- Stuff below this added by NetZero -----
Shop online without a credit card
http://www.rocketcash.com
RocketCash, a NetZero subsidiary
- Re: assign to magic name-of-function variable instead of... Damian Conway
- Re: assign to magic name-of-function variable inste... Jarkko Hietaniemi
- Re: assign to magic name-of-function variable instead of... John Porter
- Re: assign to magic name-of-function variable inste... David L. Nicol
- Re: assign to magic name-of-function variable instead of... abigail
- Re: assign to magic name-of-function variable instead of... abigail
- Re: assign to magic name-of-function variable instead of... David L. Nicol
- Re: assign to magic name-of-function variable instead of... Glenn Linderman
- Re: assign to magic name-of-function variable instead of... Damian Conway
- Re: assign to magic name-of-function variable inste... Edward Peschko
- Re: assign to magic name-of-function variable inste... Glenn Linderman
- Re: assign to magic name-of-function variable inste... Johan Vromans
- Re: assign to magic name-of-function variable instead of... abigail
- Re: assign to magic name-of-function variable instead of... James Mastros
- Re: assign to magic name-of-function variable instead of... John Porter
- Re: assign to magic name-of-function variable instead of... Tony Olekshy
