We need to clarify if 'real' is the 'default floating point type' or not.

Christopher Wright dhasenan at gmail.com
Mon Mar 3 18:25:10 PST 2008


Lionello Lunesu wrote:
> D's very proud of having fixed sized types, and rightly so, but there 
> clearly are situations where size doesn't matter, and shouldn't matter. 
> Of course, there's a minimum limit, when any smaller would just be 
> ridiculous. ....uh... nevermind.
> 
> So I think we should have 2 new aliases. One for a default int (at least 
> 32-bit) and one for a default float (at least double). On X86/87 these 
> new aliases would map to int and real respectively.

For integers, there's size_t / hash_t.

> Coming up with good names without silly adjectives/underscores will be 
> difficult, though. I, for one, can't come up with any names that 'have 
> it in them' to replace the omnipresent 'int' and 'real'...

No underscores? Faugh! You forsake your glorious C background! Fie for 
shame.



More information about the Digitalmars-d mailing list