Unable to explicitly cast imaginary float to a real floating-point (dmd v0.165)

David L. Davis SpottedTiger at yahoo.com
Sat Sep 2 17:57:16 PDT 2006


Thxs for the reply Walter. But the cast(real) used to work...why exactly is 
the reason this doesn't now? I know you changed the implict conversion of 
imaginary floats so they do not work for a good reason, just unsure why the 
explict cast() has changed also.

Thanks for your reply in advance.
David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
-------------------------------------------------------------------

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
"Walter Bright" <newshound at digitalmars.com> wrote in message 
news:ed5le5$1c1c$1 at digitaldaemon.com...
> David L. Davis wrote:
>> // Unable to explicitly cast a imaginary float to a real floating-point.
>
> r = ift * -1i;
>
> should do it. 





More information about the Digitalmars-d-bugs mailing list