[dmd-internals] Fixing forward ref bugs for good

Don Clugston dclugston at googlemail.com
Thu Sep 15 04:53:42 PDT 2011


On 15 September 2011 13:14,  <mrmocool at gmx.de> wrote:
> 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?

I think that should be disallowed.


More information about the dmd-internals mailing list