Re: Octals

2005-02-22 Thread Mark J. Reed
On 2005-02-22 at 15:47:08, Larry Wall wrote: >Maybe \x is short for \0x and that also gives us \0o, \0d and \0b, >plus any other radix we come up with, assuming we decide it isn't >overly ambiguous with bare \0. Works for me. So when you really do want a \0 in the middle of a string f

Re: Octals

2005-02-22 Thread Larry Wall
On Tue, Feb 22, 2005 at 02:47:53PM -0500, Mark J. Reed wrote: : Incidentally, will \o, \x, and the hypothetical \d still work without : curlies for a certain number of digits but require curlies for larger : numbers? I'd rather see consistency there. Well, we switched to square brackets for those

Re: Octals

2005-02-22 Thread Mark J. Reed
On 2005-02-22 at 14:26:04, Juerd wrote: >I think \777 should be chr(777). As should \0d777, should you want to >document that it's really not octal. (Important mostly the first year >after the first release.) I don't think you can assume it'll only be confusing for a year. For one thi

Re: Octals

2005-02-22 Thread [EMAIL PROTECTED]
On Tue, 22 Feb 2005 11:37:21 -0800, "Larry Wall" <[EMAIL PROTECTED]> said: > or our great-grandchildren > will curse our lack of foresight. > > Larry It won't matter then anyway...Perl 25 code will come straight from our brainwaves: _ __...---'-`---...__ _===

Re: Octals

2005-02-22 Thread Juerd
Uri Guttman skribis 2005-02-22 14:41 (-0500): > in a regex \d is a digit, so that isn't a good idea In a rule, whitespace is a very good disambiguator. > it would be better to require \0d. I think nullbyte-d is rather likely to occur. > why would we need 0d123 as a literal? Symmetry. 0x10

Re: Octals

2005-02-22 Thread Uri Guttman
> "J" == Juerd <[EMAIL PROTECTED]> writes: J> And for symmetry, can we get 0d and \d for decimal, for those cases J> where you want to be explicit? in a regex \d is a digit, so that isn't a good idea. it would be better to require \0d. the others also need a base designator character so

Re: Octals

2005-02-22 Thread Larry Wall
On Tue, Feb 22, 2005 at 11:40:23AM -0700, Luke Palmer wrote: : Some time ago on perl6-documentation (when it existed) we decided that : octals would now be represented as 0o777 and, in strings, \o777. Should : 0777 and, in particular, \777 come with warnings? What, exactly, does : \777 mean in a

Re: Octals

2005-02-22 Thread Juerd
Luke Palmer skribis 2005-02-22 11:40 (-0700): > Some time ago on perl6-documentation (when it existed) we decided that > octals would now be represented as 0o777 and, in strings, \o777. Should > 0777 and, in particular, \777 come with warnings? What, exactly, does > \777 mean in a string? And fo