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 &... Branden
- Re: assign to magic name-of-function variable instead... James Mastros
- Re: assign to magic name-of-function variable ins... John Porter
- Re: assign to magic name-of-function variable ins... Damian Conway
- Re: assign to magic name-of-function variable... John Porter
- Re: assign to magic name-of-function variable... Damian Conway
- Re: assign to magic name-of-function vari... John Porter
- Re: assign to magic name-of-function... David L. Nicol
- Re: assign to magic name-of-function vari... Glenn Linderman
- Re: assign to magic name-of-function... John Porter
- Re: assign to magic name-of-function vari... Damian Conway
- Re: assign to magic name-of-function... Edward Peschko
- Re: assign to magic name-of-function... abigail
- Re: assign to magic name-of-func... John Porter
- Re: assign to magic name-of-func... Tony Olekshy
- Re: assign to magic name-of-func... John Porter
- Re: assign to magic name-of-func... Peter Scott
- Re: assign to magic name-of-func... John Porter
- Re: assign to magic name-of-func... Peter Scott