Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?



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
.