Re: How to name variables in a program?



Matthias Kaeppler wrote:

> Isn't a DWORD just a typedef for an unsigned int? So, if you migrate to
> 64-Bit, it would still be a "double word" because an int is now twice as
> long right?

The migration, 16 to 32 bit, already happened. And a DWORD is _now_ a 32-bit
integer, meaning it's one machine word, not two.

(But this complaint is a little far from HN. Poking at Microsoft is always
fun!)

There are three integer types involved - your OS's, your language's, and
your CPU's. A DWORD is a 32-bit OS thing. Naming it "WORD", after the CPU
bus width, was silly.

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand


.



Relevant Pages