Why is complex being deprecated again?

Alex Rønne Petersen xtzgzorex at gmail.com
Sun Apr 15 18:20:01 PDT 2012


On 16-04-2012 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.
>
> Bye,
> bearophile

I assume you meant druntime? I think we really need to isolate these 
intrinsic 'hacks' in the runtime. There should be *no* magic surrounding 
Phobos in an ideal world - it should just be a plain library.

-- 
- Alex


More information about the Digitalmars-d mailing list