digitalmars.D.learn - What's the purpose of the -v1 switch?
- Trass3r (10/10) Apr 01 2009 I mean it can only be used with dmd 1.x compilers anyway.
- Jarrett Billingsley (4/14) Apr 01 2009 It turns off the features which were added to D1 after 1.000. Things
- grauzone (2/19) Apr 01 2009 So, technically, we already have a D 1.1?
- Jarrett Billingsley (2/23) Apr 01 2009 Kind of. There's no official word on it of course.
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 }
Apr 01 2009
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") =3D=3D 0) { #if DMDV1 =A0 =A0 =A0 =A0global.params.Dversion =3D 1; #else =A0 =A0 =A0 =A0error("use DMD 1.0 series compilers for -v1 switch"); =A0 =A0 =A0 =A0break; #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.
Apr 01 2009
Jarrett Billingsley wrote:On Wed, Apr 1, 2009 at 12:01 PM, Trass3r <mrmocool gmx.de> wrote:So, technically, we already have a D 1.1?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.
Apr 01 2009
On Wed, Apr 1, 2009 at 1:22 PM, grauzone <none example.net> wrote:Jarrett Billingsley wrote:Kind of. There's no official word on it of course.On Wed, Apr 1, 2009 at 12:01 PM, Trass3r <mrmocool gmx.de> wrote:So, technically, we already have a D 1.1?I mean it can only be used with dmd 1.x compilers anyway. else if (strcmp(p + 1, "v1") =3D=3D 0) { #if DMDV1 =A0 =A0 =A0 global.params.Dversion =3D 1; #else =A0 =A0 =A0 error("use DMD 1.0 series compilers for -v1 switch"); =A0 =A0 =A0 break; #endif }It turns off the features which were added to D1 after 1.000. =A0Things like the 'ref' and 'macro' keywords, string mixins, import expressions, changes to .init etc.
Apr 01 2009