On Wed, Jan 07, 2015 at 04:13:37PM +1000, Manu via Digitalmars-d wrote: > On 7 January 2015 at 15:52, Daniel Murphy via Digitalmars-d > <digitalmars-d@puremagic.com> wrote: > > "Walter Bright" wrote in message news:m8haem$29hc$1...@digitalmars.com... > >> > >> I thought it did allow painting of the form *(cast(T*)&t). > > > > > > Only for float and double, not real. > > Wait up... aren't those function's heavily overloaded? I'm calling > with doubles, why would it call the real version?
It isn't, it's probably failing because even the non-real version uses union painting to manipulate the bits, which CTFE currently doesn't support. T -- Кто везде - тот нигде.