Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- From: "Rudy Velthuis" <newsgroups@xxxxxxxxxxxx>
- Date: Sat, 5 Jan 2008 00:50:57 +0000 (UTC)
Rob Kennedy wrote:
I rather prefer the former style. If the variable is supposed to hold
its size, and I change the type of that variable, one style requires
me to also change code elsewhere in the program, whereas the other
style is automatically correct.
Exactly.
--
Rudy Velthuis http://rvelthuis.de
"The cry has been that when war is declared, all opposition
should be hushed. A sentiment more unworthy of a free country
could hardly be propagated." -- William Ellery Channing
.
- Follow-Ups:
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- From: Skybuck Flying
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- References:
- Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- From: Skybuck Flying
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- From: Rob Kennedy
- Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- Prev by Date: Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- Next by Date: Re: Destructor in delphi dll - noob question
- Previous by thread: Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- Next by thread: Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- Index(es):