what exactly does -v1 do?
Stewart Gordon
smjg_1998 at yahoo.com
Fri Feb 23 13:31:00 PST 2007
torhu Wrote:
> Tyler Knott wrote:
<snip>
>> 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.
<snip>
Strikes me as a bug. It would seem to me that the _whole point_ of it is to enable programmers to explicitly target 1.0. That is, at least in theory, they can release code and make a valid statement that it will work in DMD 1.00, and D 1.0 compilers in general.
Stewart.
More information about the Digitalmars-d
mailing list