www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - V2 breaks many V1 programs

reply Steve Teale <steve.teale britseyeview.com> writes:
If the V1 program has

char[] x = any.std.string.StringFunctionFromV1();

it won't compile because it complains about the type conversion.

Also, because a version block has to be syntactically correct, you can't
isolate v1/v2 differences because the syntax has changed.
Jul 07 2007
parent torhu <fake address.dude> writes:
Steve Teale wrote:
 If the V1 program has
 
 char[] x = any.std.string.StringFunctionFromV1();
 
 it won't compile because it complains about the type conversion.
 
 Also, because a version block has to be syntactically correct, you can't
isolate v1/v2 differences because the syntax has changed.
Both problems have solutions, look here: http://www.digitalmars.com/d/archives/digitalmars/D/supporting_DMD-1.016_and_DMD-2.000_with_the_same_source_code_54628.html#N54628
Jul 07 2007