couldn't we keep complex number literals?
Trass3r
un at known.com
Mon Jul 26 08:27:06 PDT 2010
I'm not completely sure how AAs are implemented now, but I think I read
it's somewhat outsourced to druntime. At least there's that struct
AssociativeArray(Key, Value) there.
Couldn't we do something similar with complex numbers?
Like moving the struct Complex(T) implementation that currently resides in
std.complex to the runtime, removing the types (creal etc.), adding them
as aliases there and providing some slight syntactic sugar so that complex
number literals 5 + 3i are mapped onto a Complex instance?
I think that would be an ideal solution, wouldn't it?
More information about the Digitalmars-d
mailing list