version'ing issue
Koroskin Denis
2korden at gmail.com
Sat Mar 29 14:14:15 PDT 2008
This won't compile under D 1.x:
class SomeClass
{
version( D_Version2 )
{
invariant void someMethod()
{
}
} else {
const void someMethod()
{
}
}
}
int main()
{
return 0;
}
Maybe 'version'ing should be less restrictive on syntax so that backward
compatibility could still be possible.
Now I'm a little stuck with porting code from D2.012 to D1.028.
Or should we just choose one version and stick with it?
More information about the Digitalmars-d
mailing list