On Sat May 01 01:09:55 2010, moritz wrote:
> On Thu Apr 29 10:17:29 2010, stefa...@cox.net wrote:
> > # This prints gothere ONCE
> > # Removing either sink expression causes the correct two prints
> > # rakudo e16cf4
> > for 1, 2 {
> >     $^a;
> >     $^a;
> >     say "gothere";
> > }
> 
> The occurrence of two $^a's adds two positional parameter to the block,
> making it loop only once over a list made of two items.
> 
> So it's really a signature problem, not primarily a problem with control
> flow.

Also an ex-problem...

> for 1,2 { say $^a ~ $^a }
11
22

Given to moritz++ for spectests.

Thanks,

Jonathan

Reply via email to