Re: Octal in p6rules (and strings)

2005-11-08 Thread Patrick R. Michaud
On Tue, Nov 08, 2005 at 10:55:05AM -0500, Matt Fowles wrote: > Patrick~ > > On 11/8/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > On Tue, Nov 08, 2005 at 12:57:18PM +, [EMAIL PROTECTED] wrote: > > > "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > > > :And we also get \d:0123 as a che

Re: Octal in p6rules (and strings)

2005-11-08 Thread Matt Fowles
Larry~ On 11/8/05, Larry Wall <[EMAIL PROTECTED]> wrote: > On Tue, Nov 08, 2005 at 10:55:05AM -0500, Matt Fowles wrote: > : Patrick~ > : > : On 11/8/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > : > On Tue, Nov 08, 2005 at 12:57:18PM +, [EMAIL PROTECTED] wrote: > : > > "Patrick R. Michau

Re: Octal in p6rules (and strings)

2005-11-08 Thread Larry Wall
On Tue, Nov 08, 2005 at 10:55:05AM -0500, Matt Fowles wrote: : Patrick~ : : On 11/8/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: : > On Tue, Nov 08, 2005 at 12:57:18PM +, [EMAIL PROTECTED] wrote: : > > "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: : > > :And we also get \d:0123 as a che

Re: Octal in p6rules (and strings)

2005-11-08 Thread Matt Fowles
Patrick~ On 11/8/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Tue, Nov 08, 2005 at 12:57:18PM +, [EMAIL PROTECTED] wrote: > > "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > > :And we also get \d:0123 as a cheap way of saying \d0123. > > > > I think the ':' changes the meaning of t

Re: Octal in p6rules (and strings)

2005-11-08 Thread Patrick R. Michaud
On Tue, Nov 08, 2005 at 12:57:18PM +, [EMAIL PROTECTED] wrote: > "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > :And we also get \d:0123 as a cheap way of saying \d0123. > > I think the ':' changes the meaning of the rule, so you still need > '\d0123' (or preferably something shorter) for

Re: Octal in p6rules (and strings)

2005-11-08 Thread hv
"Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: :And we also get \d:0123 as a cheap way of saying \d0123. I think the ':' changes the meaning of the rule, so you still need '\d0123' (or preferably something shorter) for the uncut semantic. Hugo

Re: Octal in p6rules (and strings)

2005-11-08 Thread Patrick R. Michaud
On Mon, Nov 07, 2005 at 03:05:06PM -0800, Larry Wall wrote: > On Mon, Nov 07, 2005 at 02:47:05PM -0600, Patrick R. Michaud wrote: > : > : But for the :w issue, we can always solve it with the colon: > : > : > : > : \d:065 = A digit (cut) followed by "065" > : > > : > That doesn't extend t

Re: Octal in p6rules (and strings)

2005-11-07 Thread Larry Wall
On Mon, Nov 07, 2005 at 02:47:05PM -0600, Patrick R. Michaud wrote: : > : But for the :w issue, we can always solve it with the colon: : > : : > : \d:065 = A digit (cut) followed by "065" : > : > That doesn't extend to \d:woot, of course... : : It doesn't? I mean, isn't that a digit fol

Re: Octal in p6rules (and strings)

2005-11-07 Thread Patrick R. Michaud
On Mon, Nov 07, 2005 at 12:37:02PM -0800, Larry Wall wrote: > On Mon, Nov 07, 2005 at 02:18:24PM -0600, Patrick R. Michaud wrote: > : Having a shortcut for seems like a very good idea; it > : certainly makes things a lot simpler for the optimizer. However, > : a reminder that A05 says that angles

Re: Octal in p6rules (and strings)

2005-11-07 Thread Larry Wall
On Mon, Nov 07, 2005 at 02:18:24PM -0600, Patrick R. Michaud wrote: : Ick, \d65 in a pattern looks really odd to me. I'll register my : distaste for this one message, and then I'll have to take a stiff : drink or something before I can bring myself to implement it. :-| I suppose we could even go

Re: Octal in p6rules (and strings)

2005-11-07 Thread Larry Wall
On Mon, Nov 07, 2005 at 02:18:24PM -0600, Patrick R. Michaud wrote: : Having a shortcut for seems like a very good idea; it : certainly makes things a lot simpler for the optimizer. However, : a reminder that A05 says that angles can be used as a bracketing : construct as in C<< \x<0a> >>, so we

Re: Octal in p6rules (and strings)

2005-11-07 Thread Patrick R. Michaud
On Mon, Nov 07, 2005 at 11:13:21AM -0800, Larry Wall wrote: > On Mon, Nov 07, 2005 at 10:51:59AM -0600, Patrick R. Michaud wrote: > : It doesn't seem to be written anywhere, but I think it's assumed > : that in string literals one would use "\o123", just as we use > : "\x0a". > > That should cert

Re: Octal in p6rules (and strings)

2005-11-07 Thread Larry Wall
On Mon, Nov 07, 2005 at 10:51:59AM -0600, Patrick R. Michaud wrote: : In p6rules, how should specify characters (glyphs, bytes, whatever) : using octal notation? : : Currently S02 says that integer constants in octal are written with : as "0o" prefix (as in 0o123), just as we would use the "0x" pr

Octal in p6rules (and strings)

2005-11-07 Thread Patrick R. Michaud
In p6rules, how should specify characters (glyphs, bytes, whatever) using octal notation? Currently S02 says that integer constants in octal are written with as "0o" prefix (as in 0o123), just as we would use the "0x" prefix to specify integers using base-16. It doesn't seem to be written anywher