A
Alf P. Steinbach
* Alf P. Steinbach:
Thanks to all who commented on the 1st version: Robert Macy, Chris Val,
BobR, and Sigurd Stenersen (I hope I haven't forgotten anybody!).
Most of this is now fixed, I think:
* Definition of "pointer" (more details added).
* Definition of "dereference" (better focused).
* Better more detailed discussion of const and const correctness.
* The bad pointer 2 UB program "improved" to be more overtly UB.
* The vtable figure improved (alas OpenOffice makes figures look bad).
* Renamed a member function for C++-oriented versions of the example
program in section 1.2, added discussion.
* Completed section 1.3.1 about ensuring dynamic allocation.
And regarding 1.3.1 I think I like this method better than the one in
the FAQ, even though this method is theoretically a more limited one
than the FAQ's completely general method (one line per class is much
better than a number of factory functions per class, I think!).
Updated version at:
<url:
http://home.no.net/dubjai/win32cpptut/special/pointers/preview/pointers_01__alpha2.doc.pdf>.
Further comments are welcome! ;-)
Contents (so far) -- the page numbers are probably incorrect since
this was for the original version, but the sections are the same:
Thanks to all who commented on the 1st version: Robert Macy, Chris Val,
BobR, and Sigurd Stenersen (I hope I haven't forgotten anybody!).
Most of this is now fixed, I think:
* Definition of "pointer" (more details added).
* Definition of "dereference" (better focused).
* Better more detailed discussion of const and const correctness.
* The bad pointer 2 UB program "improved" to be more overtly UB.
* The vtable figure improved (alas OpenOffice makes figures look bad).
* Renamed a member function for C++-oriented versions of the example
program in section 1.2, added discussion.
* Completed section 1.3.1 about ensuring dynamic allocation.
And regarding 1.3.1 I think I like this method better than the one in
the FAQ, even though this method is theoretically a more limited one
than the FAQ's completely general method (one line per class is much
better than a number of factory functions per class, I think!).
Updated version at:
<url:
http://home.no.net/dubjai/win32cpptut/special/pointers/preview/pointers_01__alpha2.doc.pdf>.
Further comments are welcome! ;-)
Contents (so far) -- the page numbers are probably incorrect since
this was for the original version, but the sections are the same: