[dmd-internals] Fixing forward ref bugs for good

mrmocool at gmx.de mrmocool at gmx.de
Thu Sep 15 04:14:36 PDT 2011


Am 15.09.2011, 11:44 Uhr, schrieb Don Clugston <dclugston at googlemail.com>:
> I think there is a simple solution to 'static if'.
> Do const folding on every static if condition, giving a boolean result.
> Do NOT evaluate any static if bodies yet.
> This would have the same effect as if every 'static if' were evaluated
> simultaneously.

What if the condition includes symbols from another static if's body or  
mixin or whatever?


More information about the dmd-internals mailing list