<?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: Collection &#038; Iterator and Class(cast)	</title>
	<atom:link href="https://jessewarden.com/2004/12/collection-iterator-and-classcast.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2004/12/collection-iterator-and-classcast.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Wed, 01 Mar 2006 02:10:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2004/12/collection-iterator-and-classcast.html/comment-page-1#comment-2184</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Wed, 01 Mar 2006 02:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=673#comment-2184</guid>

					<description><![CDATA[Sorry buddy, 1 missing object tag fubarred my new site design in IE; fixed now!


]]></description>
			<content:encoded><![CDATA[<p>Sorry buddy, 1 missing object tag fubarred my new site design in IE; fixed now!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andy Driscoll		</title>
		<link>https://jessewarden.com/2004/12/collection-iterator-and-classcast.html/comment-page-1#comment-2183</link>

		<dc:creator><![CDATA[Andy Driscoll]]></dc:creator>
		<pubDate>Tue, 28 Feb 2006 18:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=673#comment-2183</guid>

					<description><![CDATA[I am having the same problem with component props not showing up in the inspector too, and I saw the description for this page. But I am not seeing any text here...???

-AD]]></description>
			<content:encoded><![CDATA[<p>I am having the same problem with component props not showing up in the inspector too, and I saw the description for this page. But I am not seeing any text here&#8230;???</p>
<p>-AD</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Torbj?rn Caspersen		</title>
		<link>https://jessewarden.com/2004/12/collection-iterator-and-classcast.html/comment-page-1#comment-2182</link>

		<dc:creator><![CDATA[Torbj?rn Caspersen]]></dc:creator>
		<pubDate>Fri, 10 Dec 2004 18:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=673#comment-2182</guid>

					<description><![CDATA[var value:Class = Class(something);
 
This is just a &#039;trick&#039; to tell the compiler to treat &#039;something&#039; as an instance of Class. It&#039;s called casting. 
 
To quote Moocks EAS2 :&#039; Casting is used to tell the compiler the type of an object when the complier can&#039;t determine the object&#039;s type on its own&#039;]]></description>
			<content:encoded><![CDATA[<p>var value:Class = Class(something);</p>
<p>This is just a &#8216;trick&#8217; to tell the compiler to treat &#8216;something&#8217; as an instance of Class. It&#8217;s called casting. </p>
<p>To quote Moocks EAS2 :&#8217; Casting is used to tell the compiler the type of an object when the complier can&#8217;t determine the object&#8217;s type on its own&#8217;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert Edgar		</title>
		<link>https://jessewarden.com/2004/12/collection-iterator-and-classcast.html/comment-page-1#comment-2181</link>

		<dc:creator><![CDATA[Robert Edgar]]></dc:creator>
		<pubDate>Fri, 10 Dec 2004 18:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=673#comment-2181</guid>

					<description><![CDATA[&lt;a href=&#039;http://www.epresenterplus.com/blog/&#039; rel=&quot;nofollow&quot;&gt;http://www.epresenterplus.com/blog/&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.epresenterplus.com/blog/' rel="nofollow">http://www.epresenterplus.com/blog/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Richard Leggett		</title>
		<link>https://jessewarden.com/2004/12/collection-iterator-and-classcast.html/comment-page-1#comment-2180</link>

		<dc:creator><![CDATA[Richard Leggett]]></dc:creator>
		<pubDate>Fri, 10 Dec 2004 18:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=673#comment-2180</guid>

					<description><![CDATA[Hey, it&#039;s a big step in the right direction when MM start supplying Iterators and the like, shame it had to come later on in the AS2 remoting doo das.  The RecordSetIterator can lend itself to making very tight code when it comes to your AMFPHP stuff!

Next big hurdle, remove the damn mix-ins, they feel dirrty (specifically pointing the finger at the extensions added to Array with DataProvider), I dunno maybe it&#039;s me, or maybe it&#039;s just makes Flash sense for efficiency reasons. But maybe its also why half the intrinsic classes don&#039;t need abstract AS files created to satisfy the compiler (Array), and the other half do?

I&#039;ve just tried out your findings, I couldn&#039;t believe another oddity had been found.  When you pass in say an Object instead of a CompactDisc to a function, and cast it as CompactDisc, you get &#039;null&#039; back (meaning the casting has failed in Flash Player 7), not a CompactDisc (even tho Flash Player 6 does still return the Object rather than null)... even if their structure is indeed identical. However on a slightly seperate note, it does say in the live docs:

You can&#039;t override primitive data types that have a corresponding global conversion function with a cast operator of the same name

So there&#039;s the deal we get, &#039;Array()&#039; etc are built in conversion functions.  Any other &#039;Class()&#039; is merely casting.  As for casting an Object to SomeSubClassOfObject, it&#039;s only there to   assert, not to convert even tho the assertion fails silently in certain circumstances. :(

Look forward very much to your AMFPHP tutorial! Will you post it up on your blog?&#039;]]></description>
			<content:encoded><![CDATA[<p>Hey, it&#8217;s a big step in the right direction when MM start supplying Iterators and the like, shame it had to come later on in the AS2 remoting doo das.  The RecordSetIterator can lend itself to making very tight code when it comes to your AMFPHP stuff!</p>
<p>Next big hurdle, remove the damn mix-ins, they feel dirrty (specifically pointing the finger at the extensions added to Array with DataProvider), I dunno maybe it&#8217;s me, or maybe it&#8217;s just makes Flash sense for efficiency reasons. But maybe its also why half the intrinsic classes don&#8217;t need abstract AS files created to satisfy the compiler (Array), and the other half do?</p>
<p>I&#8217;ve just tried out your findings, I couldn&#8217;t believe another oddity had been found.  When you pass in say an Object instead of a CompactDisc to a function, and cast it as CompactDisc, you get &#8216;null&#8217; back (meaning the casting has failed in Flash Player 7), not a CompactDisc (even tho Flash Player 6 does still return the Object rather than null)&#8230; even if their structure is indeed identical. However on a slightly seperate note, it does say in the live docs:</p>
<p>You can&#8217;t override primitive data types that have a corresponding global conversion function with a cast operator of the same name</p>
<p>So there&#8217;s the deal we get, &#8216;Array()&#8217; etc are built in conversion functions.  Any other &#8216;Class()&#8217; is merely casting.  As for casting an Object to SomeSubClassOfObject, it&#8217;s only there to   assert, not to convert even tho the assertion fails silently in certain circumstances. :(</p>
<p>Look forward very much to your AMFPHP tutorial! Will you post it up on your blog?&#8217;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
