We need to clarify if 'real' is the 'default floating point type' or not.
Anders F Björklund
afb at algonet.se
Mon Mar 3 01:32:20 PST 2008
Don Clugston wrote:
> The spec is not quite clear on what 'real' can be and when it should be
> used.
That is quite an understatement! I think it reads something like:
"`real` is x87 for both platforms that DMD cares about, and can
map straightly onto C's long double type for you other weirdos"
And then comes "irreal" and "cereal", and makes it surreal...
> Nothing in the compiler needs to change, but we need some more
> guarantees in the spec for what 'real' can be and how it is allowed to
> behave.
It would be nice if the spec covered other platforms and compilers,
something I don't think is going to happen for D - maybe for D 2.0 ?
Once upon a time I got annoyed by all of this (and bools and strings),
but then gave up on it and just stopped using the "real" type in D.
--anders
More information about the Digitalmars-d
mailing list