On 31/01/2011 16:47, Pete Becker wrote:
On 2011-01-31 11:39:42 -0500, Leigh Johnston said:
And by "nonsense" I actually meant "unhelpful noise" (I was
considering the OP).
'I don't know what you mean by "glory",' Alice said.
Humpty Dumpty smiled contemptuously. 'Of course you don't -- till I tell
you. I
meant "there's a nice knowck-down argument for you!"
'But "glory" doesn't mean "a nice knock-down argument",' Alice objected.
'When *I* use a word,' Humpty Dumpty said, in a rather scornful tone,
'it means just what
I choose it to mean -- neither more nor less.'
Lewis Carroll, Through the Looking Glass
Maybe it is just because I am feeling a but grumpy today but I do find
some of Mr Kanze's posts incendiary:
"But in general, the actual number of bytes
occupied by UnitHeader may be less than sizeof(UnitHeader) when
UnitHeader is a base class, so brutally writing
sizeof(UnitHeader) bytes is not a safe operation."
I took issue with his generalization as although base classes often do
contain no member subobjects you would in general not be calling memset
on such base class subobjects; his generalization, with respect, was
misleading and noisy with respect to the OP.
Um, it's simply a true statement. As you say, if you know that you
shouldn't call memset on objects of that type.
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The