D1 -> D2

Rainer Deyke rainerd at eldwood.com
Thu Nov 18 11:58:00 PST 2010


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 - rainerd at eldwood.com


More information about the Digitalmars-d mailing list