DLang Spec rewrite (?)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun May 26 19:14:46 PDT 2013


On 5/26/13 10:12 PM, Jonathan M Davis wrote:
> On Sunday, May 26, 2013 22:08:44 Andrei Alexandrescu wrote:
>> On 5/26/13 8:33 PM, Jonathan M Davis wrote:
>>> But we can't have a general
>>> ddoc solution for this without changing how ddoc works in a way that makes
>>> it so that it's not just a macro system anymore.
>>
>> I totally think we can. All ddoc has to do is insert some macro call
>> automatically under certain conditions. That wouldn't make it less
>> general because you get to define macros anyway you wanna.
>
> Well, if we can do it, great. I hate having to use $(P). But it does involve
> dmd inserting stuff on its own based on the format for the text rather than
> using macro expansion (much as what it inserts would presumably be macros to
> expand). However, as long as we can do that, it should be quite feasible.

Already does that on ---- as noted. True, that makes ddoc less simple.

Andrei




More information about the Digitalmars-d mailing list