Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 01, 2009 What's the purpose of the -v1 switch? | ||||
---|---|---|---|---|
| ||||
I mean it can only be used with dmd 1.x compilers anyway. else if (strcmp(p + 1, "v1") == 0) { #if DMDV1 global.params.Dversion = 1; #else error("use DMD 1.0 series compilers for -v1 switch"); break; #endif } |
April 01, 2009 Re: What's the purpose of the -v1 switch? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | On Wed, Apr 1, 2009 at 12:01 PM, Trass3r <mrmocool@gmx.de> wrote:
> I mean it can only be used with dmd 1.x compilers anyway.
>
> else if (strcmp(p + 1, "v1") == 0)
> {
> #if DMDV1
> global.params.Dversion = 1;
> #else
> error("use DMD 1.0 series compilers for -v1 switch");
> break;
> #endif
> }
>
It turns off the features which were added to D1 after 1.000. Things like the 'ref' and 'macro' keywords, string mixins, import expressions, changes to .init etc.
|
April 01, 2009 Re: What's the purpose of the -v1 switch? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley wrote:
> On Wed, Apr 1, 2009 at 12:01 PM, Trass3r <mrmocool@gmx.de> wrote:
>> I mean it can only be used with dmd 1.x compilers anyway.
>>
>> else if (strcmp(p + 1, "v1") == 0)
>> {
>> #if DMDV1
>> global.params.Dversion = 1;
>> #else
>> error("use DMD 1.0 series compilers for -v1 switch");
>> break;
>> #endif
>> }
>>
>
> It turns off the features which were added to D1 after 1.000. Things
> like the 'ref' and 'macro' keywords, string mixins, import
> expressions, changes to .init etc.
So, technically, we already have a D 1.1?
|
April 01, 2009 Re: What's the purpose of the -v1 switch? | ||||
---|---|---|---|---|
| ||||
Posted in reply to grauzone | On Wed, Apr 1, 2009 at 1:22 PM, grauzone <none@example.net> wrote:
> Jarrett Billingsley wrote:
>>
>> On Wed, Apr 1, 2009 at 12:01 PM, Trass3r <mrmocool@gmx.de> wrote:
>>>
>>> I mean it can only be used with dmd 1.x compilers anyway.
>>>
>>> else if (strcmp(p + 1, "v1") == 0)
>>> {
>>> #if DMDV1
>>> global.params.Dversion = 1;
>>> #else
>>> error("use DMD 1.0 series compilers for -v1 switch");
>>> break;
>>> #endif
>>> }
>>>
>>
>> It turns off the features which were added to D1 after 1.000. Things like the 'ref' and 'macro' keywords, string mixins, import expressions, changes to .init etc.
>
> So, technically, we already have a D 1.1?
Kind of. There's no official word on it of course.
|
Copyright © 1999-2021 by the D Language Foundation