FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tips for updating DDMD to a new DMD?

 
Post new topic   Reply to topic     Forum Index -> ddmd
View previous topic :: View next topic  
Author Message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Thu Jun 09, 2011 5:38 pm    Post subject: Tips for updating DDMD to a new DMD? Reply with quote

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
View user's profile Send private message
Trass3r



Joined: 29 Feb 2008
Posts: 66
Location: Germany

PostPosted: Tue Jun 14, 2011 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ddmd All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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