swap doesn't work in CTFE?
Johann MacDonagh
johann.macdonagh..no at spam..gmail.com
Tue Jul 5 15:58:44 PDT 2011
On 7/4/2011 10:39 PM, Daniel Murphy wrote:
> "bearophile"<bearophileHUGS at lycos.com> wrote in message
> news:iut093$1bjg$1 at digitalmars.com...
>> Daniel Murphy:
>>
>>> Same thing happens with pointers. Reduced:
>>
>> Pointers to structs in CTFE will work in DMD 2.054 :-)
>
> When they don't crash the compiler, that is.
> http://d.puremagic.com/issues/show_bug.cgi?id=6250
>
>
Perfect! Thank you. I verified the exception is a stack overflow for the
ref case as well (but since you know the compiler internals I'm sure you
knew that already ;) ).
More information about the Digitalmars-d-learn
mailing list