Changeset 2040 for trunk/docsrc/cpptod.dd
- Timestamp:
- 09/19/10 02:11:27 (2 years ago)
- Files:
-
- trunk/docsrc/cpptod.dd (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docsrc/cpptod.dd
r659 r2040 163 163 164 164 There's a nasty bug lurking in the memcmp() implementation of operator==(). 165 The layout of a struct, due to alignment, can have 'holes'in it.165 The layout of a struct, due to alignment, can have $(SINGLEQUOTE holes) in it. 166 166 C++ does not guarantee those holes are assigned any values, and so 167 167 two different struct instances can have the same value for each member, … … 524 524 than the class definition. 525 525 It obviates the wordy practice of defining get and set properties 526 'just in case'a derived class should need to override them.526 $(SINGLEQUOTE just in case) a derived class should need to override them. 527 527 It's also a way to have interface classes, which do not have 528 528 data fields, behave syntactically as if they did.
