<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Covariant Return Types</title>
	<atom:link href="http://www.tolchz.net/?feed=rss2&#038;p=33" rel="self" type="application/rss+xml" />
	<link>http://www.tolchz.net/?p=33</link>
	<description>Random Stuff from a Random Software Developer</description>
	<lastBuildDate>Mon, 09 Jun 2008 05:32:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: tolchz</title>
		<link>http://www.tolchz.net/?p=33#comment-4421</link>
		<dc:creator>tolchz</dc:creator>
		<pubDate>Sat, 05 Jan 2008 03:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tolchz.net/2008/01/04/covariant-return-types/#comment-4421</guid>
		<description>I look at casts as a pretty good indicator of &lt;a href=&quot;http://www.c2.com/xp/CodeSmell.html&quot; rel=&quot;nofollow&quot;&gt;code smell&lt;/a&gt;; many casts, especially dynamic, usually indicate that a redesign is in order.  This probably causes me to avoid them more then necessary :)

This could also be one of those nice features of the language that is obscure enough that using a dynamic_cast is less likely to cause someone to waste an hour scratching their head.  If you don&#039;t come up with &quot;covariant return type&quot; as a search term, it may take you a while to Google it.</description>
		<content:encoded><![CDATA[<p>I look at casts as a pretty good indicator of <a href="http://www.c2.com/xp/CodeSmell.html" rel="nofollow">code smell</a>; many casts, especially dynamic, usually indicate that a redesign is in order.  This probably causes me to avoid them more then necessary <img src='http://www.tolchz.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This could also be one of those nice features of the language that is obscure enough that using a dynamic_cast is less likely to cause someone to waste an hour scratching their head.  If you don&#8217;t come up with &#8220;covariant return type&#8221; as a search term, it may take you a while to Google it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uzair</title>
		<link>http://www.tolchz.net/?p=33#comment-4420</link>
		<dc:creator>Uzair</dc:creator>
		<pubDate>Sat, 05 Jan 2008 02:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.tolchz.net/2008/01/04/covariant-return-types/#comment-4420</guid>
		<description>This is one of those things that everyone knows but no one uses because either (a) its usefulness never occurred to them or (b) they decide covariant types are too confusing.

A slightly cleaner way to do the same basic thing is to set up your OO hierarchy correctly, return the base object and then dynamic_cast it to the derived object.

Still, good post.</description>
		<content:encoded><![CDATA[<p>This is one of those things that everyone knows but no one uses because either (a) its usefulness never occurred to them or (b) they decide covariant types are too confusing.</p>
<p>A slightly cleaner way to do the same basic thing is to set up your OO hierarchy correctly, return the base object and then dynamic_cast it to the derived object.</p>
<p>Still, good post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
