<br><br><div class="gmail_quote">On Wed, Feb 13, 2008 at 1:27 PM, Ulrich von Zadow <<a href="mailto:uzadow@libavg.de">uzadow@libavg.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I need a bit of time to look this over, because I still think it should<br>
work. Member variables of base classes never move in derived classes<br>
(even with multiple inheritance), as long as you always use a pointer to<br>
the base class. For simple single inheritance, the pointer to an object<br>
shouldn't change either in a cast from base to derived class and back.<br>
offsetof(), while technicaly undefined, _should_ work for these objects<br>
in all sane implementations of C++ (For discussions of this, see<br>
<a href="http://gcc.gnu.org/ml/gcc/2003-11/msg00279.html" target="_blank">http://gcc.gnu.org/ml/gcc/2003-11/msg00279.html</a> and<br>
<a href="http://carcino.gen.nz/tech/cpp/multiple_inheritance_this.php" target="_blank">http://carcino.gen.nz/tech/cpp/multiple_inheritance_this.php</a>).<br>
</blockquote><div><br>Hmm, ok you clearly know much more about it than I do, so I'll leave it to you. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
It might take a moment for me to get around to it, though, so getting<br>
the first patch into svn would be great.<br>
<div class="Ih2E3d"></div></blockquote><div><br>Great. Would you like me to submit another patch to the list, or just commit it?<br><br>Also, about cleaning up the duplication in the test script: From what I can tell, you cannot pass parameters to test case functions. Do you know of an easy way around this off hand?<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
Cheers,<br>
<br>
Uli<br>
<br></div></blockquote></div><br>