Aaron Sherman writes: > On Tue, 2005-04-26 at 09:37 -0600, Luke Palmer wrote: > > > We're thinking at the moment that `while` will probably look like this: > > > > sub statement:<while> (&cond is lazy, &block) { > [...] > > Just curious, why a sub and not a macro?
Didn't need a macro. statement:<while> will probably end up generating parrot code directly, but this is a possible non-macro implementation. > > That does pose a problem with: > > > > given $foo { > > until $_.leaf { > > ^process; # uh oh, means $foo.leaf.process > > $_ = ^next; > > } > > } > > Ok, I'm lost. What's a unary "^"? Whoops. I think I forgot to say that I was experimenting with the half-proposed unary ^meth for $_.meth. Luke