CTFE bug or enhancement?

safety0ff via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 2 19:09:09 PDT 2014


On Thursday, 3 July 2014 at 02:02:19 UTC, safety0ff wrote:
> On Thursday, 3 July 2014 at 01:55:14 UTC, safety0ff wrote:
>> Actually, this is an enhancement because adding:
>> enum b = blah
>>
>> Makes them fail. :(
>
> The question is now: how can the delegate be evaluated for the 
> return value but not for the enum?

Looks like an ICE: 
https://github.com/D-Programming-Language/dmd/blob/master/src/interpret.c#L5169


More information about the Digitalmars-d-learn mailing list