<?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: A hint of true overloading</title>
	<atom:link href="http://blog.joa-ebert.com/2007/03/30/a-hint-of-true-overloading/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joa-ebert.com/2007/03/30/a-hint-of-true-overloading/</link>
	<description>Actionscript3, Flash, Scala, Java, C#, C++, Algorithms &#38; Imageprocessing</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:26:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ascanio</title>
		<link>http://blog.joa-ebert.com/2007/03/30/a-hint-of-true-overloading/comment-page-1/#comment-54683</link>
		<dc:creator>Ascanio</dc:creator>
		<pubDate>Tue, 22 May 2007 17:00:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.je2050.de/2007/03/30/a-hint-of-true-overloading/#comment-54683</guid>
		<description>I understand the Machine uses the .toString() method to convert a type to something it can use in a consistent way when computing an equation.

a == true is a loose comparison, so the Machine will convert the &quot;x&quot; type to String and then evaluate.

a === true is a strict comparison, so the Machine will actually check if the type is the same first.

if(a) is a little different, as it will return true if the object is not:

- null;
- undefined;
- false;
- evaluates to false, like &#039;&#039; or 0;

The latter statement is usually used to check if something exists, but it&#039;s dirty, and AS3 gives us new means of checking if a variable exists and if it is populated.


At least, I think..  :P</description>
		<content:encoded><![CDATA[<p>I understand the Machine uses the .toString() method to convert a type to something it can use in a consistent way when computing an equation.</p>
<p>a == true is a loose comparison, so the Machine will convert the &#8220;x&#8221; type to String and then evaluate.</p>
<p>a === true is a strict comparison, so the Machine will actually check if the type is the same first.</p>
<p>if(a) is a little different, as it will return true if the object is not:</p>
<p>- null;<br />
- undefined;<br />
- false;<br />
- evaluates to false, like &#8221; or 0;</p>
<p>The latter statement is usually used to check if something exists, but it&#8217;s dirty, and AS3 gives us new means of checking if a variable exists and if it is populated.</p>
<p>At least, I think..  :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joa</title>
		<link>http://blog.joa-ebert.com/2007/03/30/a-hint-of-true-overloading/comment-page-1/#comment-54587</link>
		<dc:creator>joa</dc:creator>
		<pubDate>Wed, 04 Apr 2007 10:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.je2050.de/2007/03/30/a-hint-of-true-overloading/#comment-54587</guid>
		<description>&quot;== always does the comparision between the toString() representation of two objects if they are of different type.&quot;

That is wrong. Try class A and class B both have toString returning the same. Anyways if you just try something like trace( a == b ); you get a compile-time error because comparison of two different types is made.

Also if you want to compare a to &#039;&#039; and toString() returns &#039;&#039; you get the same error.</description>
		<content:encoded><![CDATA[<p>&#8220;== always does the comparision between the toString() representation of two objects if they are of different type.&#8221;</p>
<p>That is wrong. Try class A and class B both have toString returning the same. Anyways if you just try something like trace( a == b ); you get a compile-time error because comparison of two different types is made.</p>
<p>Also if you want to compare a to &#8221; and toString() returns &#8221; you get the same error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jalava</title>
		<link>http://blog.joa-ebert.com/2007/03/30/a-hint-of-true-overloading/comment-page-1/#comment-54586</link>
		<dc:creator>Jalava</dc:creator>
		<pubDate>Wed, 04 Apr 2007 10:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.je2050.de/2007/03/30/a-hint-of-true-overloading/#comment-54586</guid>
		<description>This problem is simple, == always does the comparision between the toString() representation of two objects if they are of different type. === does strict comparision, which in turn wont work here.</description>
		<content:encoded><![CDATA[<p>This problem is simple, == always does the comparision between the toString() representation of two objects if they are of different type. === does strict comparision, which in turn wont work here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

