std.complex

Daniel Murphy yebblies at nospamgmail.com
Sat Nov 23 00:18:45 PST 2013


"Craig Dillabaugh" <craig.dillabaugh at gmail.com> wrote in message 
news:izowcplookyzxrpzmoci at forum.dlang.org...
> On Saturday, 23 November 2013 at 04:37:19 UTC, Shammah Chancellor wrote:
>> //Hijack
>>
>> http://digitalmars.com/d/1.0/cppcomplex.html
>>
>>> . Consider the formula (1 - infinity*i) * i which should produce 
>>> (infinity + i). However, if instead the second factor is (0 + i) rather 
>>> than just i, the result is (infinity + NaN*i), a spurious NaN was 
>>> generated.
>>> . A distinct imaginary type preserves the sign of 0, necessary for 
>>> calculations involving branch cuts.
>>
>> Is this stuff no longer an issue?
>>
>> -Shammah
>
> I believe D used to have builtin complex types, back in the old days. They 
> have been removed (deprecated?) and replaced by the library type 
> std.complex.
>
> At least that is my understanding.
>
> Craig
>

They are not deprecated yet, but it has been 'planned' for a long time. 
It's one of those things where not deprecating them doesn't hurt anyone, so 
it isn't high priority. 




More information about the Digitalmars-d mailing list