<?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: Abstract Classes</title>
	<atom:link href="http://jacksondunstan.com/articles/186/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com/articles/186</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:30:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/186/comment-page-1#comment-79</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Mon, 28 Sep 2009 17:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=186#comment-79</guid>
		<description>Thanks for the alternative. I wrapped it in the code formatting:

&lt;pre lang=&quot;actionscript3&quot;&gt;
// code...
&lt;/pre&gt;

Your version would seem to work, but looks much more expensive. You have to call &lt;tt&gt;getQualifiedClassName()&lt;/tt&gt;, split a string (which allocates a new array too), a dynamic array access, and a string compare. The version I wrote about just does an Object (pointer) compare. Could you explain why you prefer the version you posted? I&#039;d be interested to hear if it has some benefits over the version I wrote about.

Thanks for commenting!</description>
		<content:encoded><![CDATA[<p>Thanks for the alternative. I wrapped it in the code formatting:</p>
<p>&lt;pre lang=&quot;actionscript3&quot;&gt;<br />
// code&#8230;<br />
&lt;/pre&gt;</p>
<p>Your version would seem to work, but looks much more expensive. You have to call <tt>getQualifiedClassName()</tt>, split a string (which allocates a new array too), a dynamic array access, and a string compare. The version I wrote about just does an Object (pointer) compare. Could you explain why you prefer the version you posted? I&#8217;d be interested to hear if it has some benefits over the version I wrote about.</p>
<p>Thanks for commenting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hernan</title>
		<link>http://jacksondunstan.com/articles/186/comment-page-1#comment-78</link>
		<dc:creator>Hernan</dc:creator>
		<pubDate>Mon, 28 Sep 2009 17:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=186#comment-78</guid>
		<description>I do that a lot, but I use this:

&lt;pre lang=&quot;actionscript3&quot;&gt;
public function MyClass()
{
	// THIS REPLACES ABSTRACT CLASSES
	if (getQualifiedClassName(this).split(&#039;::&#039;)[1] == &#039;MyClass&#039;)
	{
		throw new Error (&#039;WARNING: MyClass should be treated as an abstract class.&#039;);
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I do that a lot, but I use this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> MyClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #009900; font-style: italic;">// THIS REPLACES ABSTRACT CLASSES</span>
    <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">getQualifiedClassName</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">split</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'::'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span> == <span style="color: #990000;">'MyClass'</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">throw</span> <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Error</span> <span style="color: #000000;">&#40;</span><span style="color: #990000;">'WARNING: MyClass should be treated as an abstract class.'</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>

