View previous topic :: View next topic |
Author |
Message |
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
Posted: Thu Jun 09, 2011 5:38 pm Post subject: Tips for updating DDMD to a new DMD? |
|
|
Are there any tips, recommendations, standard procedures, etc for upgrading DDMD to a newer DMD? I'd like to try, but DDMD's source seems to be organized differently from DMD's so I'm not even really sure where to start (and it doesn't help either that, being in C++, DMD's modules are split into .h and .c files).
I would guess that right strategy would be to compare two versions of DMD (ie, the one DDMD is currently based on, and the one you're trying to update to), and then recreate the changes in DDMD. Although I'm not sure how DMD's and DDMD's files map to each other (FWIW, I'm more familiar with DDMD's source than DMD's). |
|
Back to top |
|
|
Trass3r
Joined: 29 Feb 2008 Posts: 66 Location: Germany
|
Posted: Tue Jun 14, 2011 6:02 am Post subject: |
|
|
Most important: only 1 dmd version at a time.
As you said, the structure is different so no automated diff'ing and patching is possible.
You have to compare 2 versions of dmd manually and then change ddmd accordingly.
dmd is organized so that similar operations go into the same file, thus its classes are spread across several files, e.g. expression.c contains semantic analysis for all the different expressions.
In ddmd it is the other way around and each file contains a whole class most often corresponding to a particular AST node. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|