Compilation failure
Timon Gehr
timon.gehr at gmx.ch
Fri Jul 20 14:53:33 PDT 2012
On 07/20/2012 01:53 PM, bearophile wrote:
> Timon Gehr:
>
>> Usually bugs are reported by the guy who finds them, but here you go:
>> http://d.puremagic.com/issues/show_bug.cgi?id=8400
>
> Thank you, already fixed, it seems. Even if the fix is the opposite of
> what I have thought (I was thinking about forbidding global immutables
> too to be used as compile-time constants, while this fix turns local
> immutables too into enums. I hope this change doesn't cause a large mess).
>
They are not enums. They are interpretable at compile time if their
initializer is interpretable at compile time. This makes sense. This is
a bug fix. Similar code already works.
More information about the Digitalmars-d-learn
mailing list