DLang Spec rewrite (?)
Walter Bright
newshound2 at digitalmars.com
Sat May 25 21:30:44 PDT 2013
On 5/25/2013 8:55 PM, Jonathan M Davis wrote:
>> 3) Again using LINK2, if I were to delete the LINK2= line from
>> doc.ddoc and forget to readd it, my experience is that dmd -D
>> will quietly drop instances of $(LINK2) without telling me.
>
> Then perhaps dmd should be fixed so that it complains. That's a quality of
> implementation issue and probably easily fixed.
It's quite deliberate, is not a QoI issue, and doesn't need to be fixed.
>> 4) Again using the same example, if LINK2 gets defined in
>> multiple DDoc files, how do I know for certain which definition
>> it calls when dmd runs against the files?
>
> Again. That's a QoI issue. We can probably make the compiler give a warning or
> error in that case.
Again, this is deliberate. Macros are set up so that the last one overrides all
the previous ones, enabling a hierarchy of them using ddoc files. It's a simple
form of 'inheritance'.
More information about the Digitalmars-d
mailing list