Octal-like integer literals
andrej.mitrovich at gmail.com
Sat Feb 11 10:43:48 PST 2012
On 2/11/12, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> On Sat, Feb 11, 2012 at 06:48:20PM +0100, Andrej Mitrovic wrote:
>> Octals are going away, the use of them in Phobos have been removed and
>> Walter confirmed this too afaik.
> So the question is, how will things like "0744" and "098" be interpreted
> once octals have gone away? Will they still be rejected by the compiler?
auto x = 0744;
$ dmd test.d
$ test.d(5): octal literals 0744 are deprecated, use std.conv.octal!744 instead
You can only use them with the -d switch.
More information about the Digitalmars-d