Re: How to name variables in a program?
- From: "Phlip" <phlip_cpp@xxxxxxxxx>
- Date: Tue, 31 May 2005 17:09:34 GMT
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
.
- References:
- How to name variables in a program?
- From: SerGioGio
- Re: How to name variables in a program?
- From: Martijn
- Re: How to name variables in a program?
- From: Phlip
- Re: How to name variables in a program?
- From: Matthias Kaeppler
- How to name variables in a program?
- Prev by Date: Re: How to name variables in a program?
- Next by Date: Re: set intersection -> true/false
- Previous by thread: Re: How to name variables in a program?
- Next by thread: Re: How to name variables in a program?
- Index(es):
Relevant Pages
|