[phobos] committed a bunch of stuff...

Andrei Alexandrescu andrei at erdani.com
Wed Jul 28 12:17:07 PDT 2010


Don Clugston wrote:
> std.complex needs be to firmly established as a complete replacement
> for creal et. al, before they can be declared deprecated. We're not
> there yet (writefln of complex numbers didn't work in the last
> release).

Agreed.

> Even when it happens, functions like writeln should behave a bit more
> gracefully. Does it do the same thing with other unusual types?

Well it's funny. formattedWrite does behave nicely with unusual structs, 
but I emphasize - structs. The complex types are not structs so they 
aren't handled "nicely".

> It's also worth noting that moving associative arrays to a library
> type has been very painful. Nearly ten releases later, we still have
> some horrible regressions. Doing the same thing with complex needs to
> be done very carefully.

Agreed. I think and hope that the pain is well worth it.


Andrei


More information about the phobos mailing list