On 11/18/2010 12:39, Walter Bright wrote: > I agree that's an issue. Currently, the only way to deal with this is > one of: > > 1. Minimize the differences, and maintain two copies of the source code. > Using the (rather fabulous) meld tool (available on Linux), the merging > is pretty easy. I use meld all the time to, for example, merge > differences in the code base between dmd1 and dmd2. > > 2. Isolate the code that is different into different files, which > minimizes the work involved in (1). > > 3. Use string mixins and the token string literal form.
4. Use an external preprocessor to generate the D1 and D2 code from the same source file. -- Rainer Deyke - [email protected]
