Why is complex being deprecated again?

Lars T. Kyllingstad public at kyllingen.net
Sun Apr 15 23:11:09 PDT 2012


On 16/04/12 00:31, bearophile wrote:
> Lars T. Kyllingstad:
>
>> If there is anything missing from the module, I will be happy to add it.
>
> You have seen std.math.expi, that returns a creal using the instructions
> sincos plus a registers swap (so it returns complex(cos,sin)). Maybe
> it's worth adding to Phobos a fully inlinable core.bitop.sincos
> intrinsic that performs just the sincos.

You're right, expi() should be added.  I remember that being on my to-do 
list, but I don't know why I skipped it.

-Lars



More information about the Digitalmars-d mailing list