Attached, I've included test results, the tests and the patch (both to the spectest suite and nqp-rx) to support this spec change.
On Thu, Jun 17, 2010 at 7:49 PM, <pugs-comm...@feather.perl6.nl> wrote: > Author: lwall > Date: 2010-06-18 01:49:13 +0200 (Fri, 18 Jun 2010) > New Revision: 31337 > > Modified: > docs/Perl6/Spec/S02-bits.pod > Log: > [S02] allow _ between radix and digits as suggested by ajs++ > > > Modified: docs/Perl6/Spec/S02-bits.pod > =================================================================== > --- docs/Perl6/Spec/S02-bits.pod 2010-06-17 21:54:34 UTC (rev 31336) > +++ docs/Perl6/Spec/S02-bits.pod 2010-06-17 23:49:13 UTC (rev 31337) > @@ -3042,6 +3042,8 @@ > > A single underscore is allowed only between any two digits in a > literal number, where the definition of digit depends on the radix. > +(A single underscore is also allowed between a radix prefix and a > +following digit, as explained in the next section.) > Underscores are not allowed anywhere else in any numeric literal, > including next to the radix point or exponentiator, or at the beginning > or end. > @@ -3056,6 +3058,13 @@ > 0d base 10, digits 0..9 > 0x base 16, digits 0..9,a..f (case insensitive) > > +Each of these allows an optional underscore after the radix prefix > +but before the first digit. These all mean the same thing: > + > + 0xbadcafe > + 0xbad_cafe > + 0x_bad_cafe > + > =item * > > The general radix form of a number involves prefixing with the radix > > -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs