Fixing the imaginary/complex mess

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Mon May 4 01:56:41 PDT 2009


Don wrote:
> In the case complex = int/complex, there's no problem. It's the case int 
> = int/complex that doesn't make sense.
> And that's fundamentally because cast(real)(2 + 3i) doesn't have a 
> definite answer.

Devil's advocate: one could argue it's the same as cast(int) of a float -- it 
returns the closest representable value, for some definition of "closest".



More information about the Digitalmars-d mailing list