what exactly does -v1 do?
torhu
fake at address.dude
Thu Feb 22 16:38:32 PST 2007
Tyler Knott wrote:
> Lars Ivar Igesund wrote:
>> Language features added to DMD after release 1.000 will not work when using
>> that switch.
>>
> Except they do work? This compiles on DMD 1.007 with -v1 (as the only flag) without error:
>
> void main() { mixin(`int foo;`); } //mixin declarations are definitely post-1.0
I suppose it's only for features that break backward compatibility. It
enables implicit conversion from objects to void pointers. That's all I
know that it does as of 1.007.
If you need older (pre 'D spec 1') features to work, -d will enable some
of them. Implicit conversion from arrays to pointers comes to mind.
More information about the Digitalmars-d
mailing list