Where are the the comments in dmd?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon May 3 12:30:35 UTC 2021


On Sunday, 2 May 2021 at 18:23:16 UTC, 12345swordy wrote:
> The lack of comments in dmd makes it extremely difficult for 
> newcomers such as myself to contribute.

I agree that the code structure is difficult to get into. The 
code base should have been broken into more files and organized 
properly in directories. The different layers should also have 
been made completely separate.

E.g. things that ought to be easy can be challenging, like adding 
an additional parser should be trivial, and it isn't too 
difficult, but you have to stick to the same tokens as there 
seems to be a dependencies in error message generation. So when 
trying to change things you get this domino-effect... Like having 
to switch tokens to 16 bits to get enough tokens for two 
parsers...

Also, just to add a new file-extension type I had to modify 
multiple source files. So might have to look in multiple 
unrelated locations in order to figure out what actually 
happens... And I've only done syntax stuff, as I haven't figured 
out the best way to rebase the code base as DMD upgrades. Anyone 
know what strategy works best for rebasing?

What changes are you planning to work on?



More information about the Digitalmars-d mailing list