Glenn Linderman wrote: > > 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; That doesn't look like a block to me. What it *does* look like is the statement modifier form of if/unless, the difference being that it always permits the statement to execute, regardless of the value of the predicate. But under that interpretation, it doesn't happen at sub exit, even when appended to return(): return <F> always close F; # statement modifier? would do the wrong thing. I wonder if it shouldn't rather be return <F>; always { close F } # a catchy block. -- John Porter You can't keep Perl6 Perl5.
- Re: assign to magic name-of-function variable instead of &... James Mastros
- Re: assign to magic name-of-function variable instead... John Porter
- Re: assign to magic name-of-function variable instead... Damian Conway
- 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 vari... David L. Nicol
- Re: assign to magic name-of-function variable... Glenn Linderman
- Re: assign to magic name-of-function vari... John Porter
- Re: assign to magic name-of-function variable... Damian Conway
- Re: assign to magic name-of-function vari... Edward Peschko
- Re: assign to magic name-of-function vari... abigail
- Re: assign to magic name-of-function... John Porter
- Re: assign to magic name-of-function... Tony Olekshy
- Re: assign to magic name-of-function... John Porter
- Re: assign to magic name-of-function... Peter Scott
- Re: assign to magic name-of-function... John Porter
- Re: assign to magic name-of-function... Peter Scott
- Re: assign to magic name-of-function... David L. Nicol