RE: Sigils again

2002-08-22 Thread Brent Dax
Erik Steven Harrison: # We all know how to alias things in Perl 5. The binding # operator allows aliasing in Perl 6, I understand. So, # how do we alias grammer rules? Here are my guesses. Rules are just subs or methods, so you do it the same way you do a sub or method. (I think. :^) ) --Bren

:, ::, :::, and :::: in P6REs

2002-08-22 Thread Simon Cozens
I don't usually have problems with commitment... I think I can distinguish :: from ::: - :: fails the current branch point, whereas ::: fails the entire rule. I can do ::: trivially. I think I can distinguish between ::: and ; the implementation is a bit tricky, because ::: fails the current ma

Re: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Damian Conway
> I think I can distinguish :: from ::: - :: fails the current branch point, > whereas ::: fails the entire rule. Correct. > I think I can distinguish between ::: and ; the implementation > is a bit tricky, because ::: fails the current match - easy enough - > whereas has to specify to all upp

Re: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Simon Cozens
[EMAIL PROTECTED] (Damian Conway) writes: > It's not an exception, but you could certainly *implement* it that way. I would argue that it is in some sense, if not an Official Perl 6 Exception, since it jumps out of several levels of a match. But yeah, I'm probably just looking at this from an imp

RE: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Paul Marquess
> The behaviour is explained quite well in E5 I think. Is that the "soon to be released" E5? Paul

Re: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Damian Conway
Simon Cozens wrote: > While I'm messing about with REs, is it specified how :any and hypotheticals > interoperate? > >"ab" =~ rx:any / $match := (\w) /; >print $match; > > Can that be undefined behaviour? Please? :) I don't think so. It would probably result in $0 containing an array

Re: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Damian Conway
Paul Marquess wrote: > Is that the "soon to be released" E5? No, that's the "to be released today" E5. ;-) Damian

Re: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Simon Cozens
[EMAIL PROTECTED] (Paul Marquess) writes: > Is that the "soon to be released" E5? Sometime today, all being well. -- I often think I'd get better throughput yelling at the modem.

RE: :, ::, :::, and :::: in P6REs

2002-08-22 Thread Paul Marquess
> > Is that the "soon to be released" E5? > > No, that's the "to be released today" E5. > > ;-) Yy!!