Newsgroups: perl.perl6.language
From: d...@sidhe.org (Dan Sugalski)
Date: Tue, 18 Nov 2003 11:14:54 -0500 (EST)
Local: Tues, Nov 18 2003 11:14 am
Subject: Re: Control flow variables
On Tue, 18 Nov 2003, Simon Cozens wrote: $cleanup = bless {}, class : impatient { > Austin_Hasti...@Yahoo.com (Austin Hastings) writes: > > This is what I was talking about when I mentioned being able to do: > > &cleanup .= { push @moves: [$i, $j]; } > This reminds me of something I thought the other day might be useful: > $cleanup = bless {}, class { > Of course, it probably wouldn't work in this context because you couldn't method DESTROY { ... } }; That'll probably do it, at the expense of extra runtime block exit add_block_exit_action(\&foo); or something similar will do it. (Though we could add new syntax for it if Dan --------------------------------------"it's like this"------------------- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||