On 7 January 2015 at 16:07, H. S. Teoh via Digitalmars-d <[email protected]> wrote: > On Wed, Jan 07, 2015 at 04:52:25PM +1100, Daniel Murphy via Digitalmars-d > wrote: >> "Walter Bright" wrote in message news:[email protected]... >> >> >I thought it did allow painting of the form *(cast(T*)&t). >> >> Only for float and double, not real. > > Ahhh now I remember what the problem was... there is no 80-bit integer > type, so using union painting is the only way to work with reals in > CTFE. > > Of course, this *could* be construed to be a nail in the real coffin, > seeing that real is purportedly slower on modern hardware due to x87 > being gradually phased out...
At very least, I would *really* like a compiler flag to disable real, or alias real=double to match other architectures. I have never had a use for real, it can only lead to problems for me, especially portability problems.
