<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Another C++ quiz, simpler</title>
	<atom:link href="http://victorsergienko.com/cpp-quiz-simpler/feed/" rel="self" type="application/rss+xml" />
	<link>http://victorsergienko.com/cpp-quiz-simpler/</link>
	<description>Software design and development: OOD, C++, .NET, Java, a little this and that</description>
	<pubDate>Sun, 23 Nov 2008 13:23:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Victor Sergienko</title>
		<link>http://victorsergienko.com/cpp-quiz-simpler/#comment-812</link>
		<dc:creator>Victor Sergienko</dc:creator>
		<pubDate>Tue, 04 Nov 2008 07:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://victorsergienko.com/?p=40#comment-812</guid>
		<description>Astra, right.
Interesting thing is that same "pointer" variable keeps two values, which is not evident.</description>
		<content:encoded><![CDATA[<p>Astra, right.<br />
Interesting thing is that same &#8220;pointer&#8221; variable keeps two values, which is not evident.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Astra</title>
		<link>http://victorsergienko.com/cpp-quiz-simpler/#comment-811</link>
		<dc:creator>Astra</dc:creator>
		<pubDate>Mon, 03 Nov 2008 22:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://victorsergienko.com/?p=40#comment-811</guid>
		<description>Probably repeating your answer, but this is indeed quite natural.

p = &#38;A::f;
is a pointer to a virtual function and compiler knows it, therefore it is a pointer to an entry in vtable (of pb object) and is treated by compiler as such.

p = &#38;A::g;
is a pointer to a regular function and compiler knows it, therefore it is a pointer into the chunk of memory that contains the code of A::g() function. Compiler just does type matching whether p function makes sense for bp object.</description>
		<content:encoded><![CDATA[<p>Probably repeating your answer, but this is indeed quite natural.</p>
<p>p = &amp;A::f;<br />
is a pointer to a virtual function and compiler knows it, therefore it is a pointer to an entry in vtable (of pb object) and is treated by compiler as such.</p>
<p>p = &amp;A::g;<br />
is a pointer to a regular function and compiler knows it, therefore it is a pointer into the chunk of memory that contains the code of A::g() function. Compiler just does type matching whether p function makes sense for bp object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fiberglass flowers / C++ quiz from the past</title>
		<link>http://victorsergienko.com/cpp-quiz-simpler/#comment-518</link>
		<dc:creator>Fiberglass flowers / C++ quiz from the past</dc:creator>
		<pubDate>Wed, 14 May 2008 12:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://victorsergienko.com/?p=40#comment-518</guid>
		<description>[...] take another, simpler C++ quiz about member pointers.   Please bookmark this post: These icons link to social bookmarking sites where readers can share [...]</description>
		<content:encoded><![CDATA[<p>[...] take another, simpler C++ quiz about member pointers.   Please bookmark this post: These icons link to social bookmarking sites where readers can share [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Sergienko</title>
		<link>http://victorsergienko.com/cpp-quiz-simpler/#comment-517</link>
		<dc:creator>Victor Sergienko</dc:creator>
		<pubDate>Tue, 13 May 2008 22:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://victorsergienko.com/?p=40#comment-517</guid>
		<description>Both MSVC and gcc print:

B::f()
A::g()

which means member function pointer keeps both function address &lt;b&gt;and&lt;/b&gt; VMT index.
And probably a flag telling if it's virtual.</description>
		<content:encoded><![CDATA[<p>Both MSVC and gcc print:</p>
<p>B::f()<br />
A::g()</p>
<p>which means member function pointer keeps both function address <b>and</b> VMT index.<br />
And probably a flag telling if it&#8217;s virtual.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
