Jarrett Billingsley wrote:
On Tue, Jul 7, 2009 at 11:20 PM, Walter
Translating C code to D.

I don't see this as a reasonable justification.  Octal isn't used that
much in C either, and D is already so far from C that you need an
automated tool to do it, so you might as well just have the tool
translate them.  The compiler could even disallow leading zeroes,
giving you an error on any integer literals that weren't automatically
translated.

I've translated code, and a tool isn't really necessary. But translating octal constants to hex like 077733 is very error prone. And yes, I ran into a bunch of them just recently in the OSX system header files. So they exist. I don't see a good reason to make things difficult to translate.

Reply via email to