[Issue 15465] Make the "Ddoc" header optional in .dd files
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Dec 22 17:17:21 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15465
Adam D. Ruppe <destructionator at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com
--- Comment #2 from Adam D. Ruppe <destructionator at gmail.com> ---
Just quickly looking at the source: the compiler seems to treat .dd files
identically as .d files. In any D file, if it starts with "Ddoc", it is
processed as a gigantic documentation comment by dmodule.parse. (You can rename
any random .dd file to .d and run it through the compiler to see this yourself
btw).
So for this to change, mars.d would have to tell dmodule.d that the file had
the .dd extension, or otherwise treat it specially compared to other D files.
Then the first few bytes can be stripped, if present, and you take it from
there.
--
    
    
More information about the Digitalmars-d-bugs
mailing list