Michael Lazzaro: # On Thursday, January 23, 2003, at 02:24 PM, Brent Dax wrote: # > I suspect that the prototype for '..' is like this: # # So the 'step' use of colon may _only_ be used in conjunction with a # "ranged" list, e.g. C<..>, correct? In _any_ other context, it means # something else.
In *all* contexts, it's a supercomma. C<..> interprets whatever comes after the supercomma as being a step. # In looking at A3, I also can't seem to find anything # definitive on the # allowed operands to C<..>: specifically, if they can be anything but # literals, or integers. They can be variables in Perl 5, so I suspect Perl 6 is fine with it too. # Would all of the following therefore be syntax errors? # # @a : 2 This isn't a syntax error, but it doesn't do what you want. # 1 .. $a # 1 .. $a : 2 # $a .. $b # $a .. $b : 2 # $a .. $b : $c # 1 .. 10 : $c # 2.5 .. 10.0 : 0.5 To my knowledge, these are all fine. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) >How do you "test" this 'God' to "prove" it is who it says it is? "If you're God, you know exactly what it would take to convince me. Do that." --Marc Fleury on alt.atheism