Integer conversions too pedantic in 64-bit

Nick Sabalausky a at a.a
Wed Feb 16 22:09:14 PST 2011


"KennyTM~" <kennytm at gmail.com> wrote in message 
news:ijghne$ts1$1 at digitalmars.com...
> On Feb 16, 11 11:49, Michel Fortin wrote:
>> On 2011-02-15 22:41:32 -0500, "Nick Sabalausky" <a at a.a> said:
>>
>>> I like "nint".
>>
>> But is it unsigned or signed? Do we need 'unint' too?
>>
>> I think 'word' & 'uword' would be a better choice. I can't say I'm too
>> displeased with 'size_t', but it's true that the 'size_t' feels out of
>> place in D code because of its name.
>>
>>
>
> 'word' may be confusing to Windows programmers because in WinAPI a 'WORD' 
> means an unsigned 16-bit integer (aka 'ushort').
>
> http://msdn.microsoft.com/en-us/library/cc230402(v=PROT.10).aspx

That's just a legacy issue from when windows was mainly on 16-bit machines. 
"Word" means native size. 




More information about the Digitalmars-d mailing list