We need to clarify if 'real' is the 'default floating point type' or not.
Ameer Armaly
ameer.armaly at furman.edu
Thu Mar 6 11:02:34 PST 2008
"JMNorris" <nospam at nospam.com> wrote in message
news:fqonmv$25gh$1 at digitalmars.com...
> "Ameer Armaly" <ameer.armaly at furman.edu> wrote in
> news:fqjl0e$2mi4$1 at digitalmars.com:
>
>> I don't know why I didn't think of this earlier: auto. If you want
>> optimal int types, isn't that part of the rationale behind type
>> inference?
>
> I assume you're proposing a change in the way auto works. Currently for:
>
> auto x = 5 < 7;
>
> x has type bool.
Not really. Suppose you're on a 64-bit machine.
auto x = 5;
should yield a long, where as on a 32-bit machine it should yield an int
It's not perfect by any stretch, but it's easier given the current
circumstances.
More information about the Digitalmars-d
mailing list