Best practice for strings across D1 and D2

Trass3r un at known.com
Thu Mar 17 06:06:13 PDT 2011


nedbrek Wrote:
> 2) What is the best way to make the same declarations work for D1 and D2? 
> It seems everything inside a "version" statement must parse correctly, and 
> D1 doesn't want to parse "immutable(char)"...

You may also use versioned aliases.
Just include the D2 code via a string mixin to circumvent the parsing problem.


More information about the Digitalmars-d-learn mailing list