removal of cruft from D

Adam D. Ruppe destructionator at gmail.com
Fri Nov 20 14:12:21 PST 2009


On Fri, Nov 20, 2009 at 04:49:52PM -0500, Nick Sabalausky wrote:
> 2. Octal literals! I think it'd be great to have a new octal syntax, or even 
> better, a general any-positive-inter-base syntax.

Both D and DMC accept 0b0000 as a binary literal. If 0x is hex, it seems
logical that octal should be 0o10.

It looks silly, but it fits the pattern, provides the literal for those
who use it, and isn't valid right now.

Actually, I feel like DMC used to accept that, but testing now shows it
doesn't, so I must just be mistaken.


-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list