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

Lionello Lunesu lionello at lunesu.remove.com
Mon Mar 3 22:30:33 PST 2008


"Christopher Wright" <dhasenan at gmail.com> wrote in message 
news:fqibu4$2cfs$1 at digitalmars.com...
> 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.

The size_t I get, but I never understood why there's a hash_t that differs 
in size.

>> 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.

I've been trying to forsake my C background for a couple of years now! And 
it isn't easy :-S

L. 




More information about the Digitalmars-d mailing list