<?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: Classes and Operators</title>
	<atom:link href="http://www.pixelwit.com/blog/2007/07/classes-and-operators/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelwit.com/blog/2007/07/classes-and-operators/</link>
	<description>Making Flash Go</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:38:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Pixelwit</title>
		<link>http://www.pixelwit.com/blog/2007/07/classes-and-operators/comment-page-1/#comment-1235</link>
		<dc:creator>Pixelwit</dc:creator>
		<pubDate>Sun, 19 Aug 2007 19:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelwit.com/blog/2007/07/12/classes-and-operators/#comment-1235</guid>
		<description>Hi Rezmason, thanks for the comment.  While I don&#039;t know a thing about operator overloading in other languages, I agree that it would probably be difficult to implement in AS, which is why I would like Adobe to handle the whole process for me.

They allow you to use the &quot;+&quot; operator to concatenate instances of the String class and they also have the &quot;concat&quot; method which basically does the same thing but it&#039;s my guess that 99% of all ActionScripters use &quot;+&quot; rather than &quot;concat&quot; because it makes more sense to them.  I&#039;m looking for the same sort of ~sensibility~ in the point class.

Do you think this feature would require the EcmaScript standard to be modified?</description>
		<content:encoded><![CDATA[<p>Hi Rezmason, thanks for the comment.  While I don&#8217;t know a thing about operator overloading in other languages, I agree that it would probably be difficult to implement in AS, which is why I would like Adobe to handle the whole process for me.</p>
<p>They allow you to use the &#8220;+&#8221; operator to concatenate instances of the String class and they also have the &#8220;concat&#8221; method which basically does the same thing but it&#8217;s my guess that 99% of all ActionScripters use &#8220;+&#8221; rather than &#8220;concat&#8221; because it makes more sense to them.  I&#8217;m looking for the same sort of ~sensibility~ in the point class.</p>
<p>Do you think this feature would require the EcmaScript standard to be modified?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rezmason</title>
		<link>http://www.pixelwit.com/blog/2007/07/classes-and-operators/comment-page-1/#comment-1110</link>
		<dc:creator>rezmason</dc:creator>
		<pubDate>Thu, 16 Aug 2007 15:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelwit.com/blog/2007/07/12/classes-and-operators/#comment-1110</guid>
		<description>Although operator overloading would be nice, I don&#039;t believe it will appear in EcmaScript anytime soon. And because EcmaScript directs the development of AS, that means it&#039;ll be more than a few years before operator overloading will appear in Flash.

But for now, I think it&#039;s for the better. A major advantage of AS3 over languages such as C++ is that you have to invest less time toward learning the language, which reduces the learning curve. Web languages (what I call AS3 and its brethren) are an opportunity for the masses to take up programming, and language features such as operator overloading might unnecessarily complicate AS3.

Besides, aren&#039;t getters and setters enough? :P If you want to overload an operator, nothing can prevent you from creating a function such as add() or subtract().</description>
		<content:encoded><![CDATA[<p>Although operator overloading would be nice, I don&#8217;t believe it will appear in EcmaScript anytime soon. And because EcmaScript directs the development of AS, that means it&#8217;ll be more than a few years before operator overloading will appear in Flash.</p>
<p>But for now, I think it&#8217;s for the better. A major advantage of AS3 over languages such as C++ is that you have to invest less time toward learning the language, which reduces the learning curve. Web languages (what I call AS3 and its brethren) are an opportunity for the masses to take up programming, and language features such as operator overloading might unnecessarily complicate AS3.</p>
<p>Besides, aren&#8217;t getters and setters enough? <img src='http://www.pixelwit.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  If you want to overload an operator, nothing can prevent you from creating a function such as add() or subtract().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pixelwit</title>
		<link>http://www.pixelwit.com/blog/2007/07/classes-and-operators/comment-page-1/#comment-489</link>
		<dc:creator>Pixelwit</dc:creator>
		<pubDate>Mon, 16 Jul 2007 15:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelwit.com/blog/2007/07/12/classes-and-operators/#comment-489</guid>
		<description>As I&#039;m not an expert at writing classes or AS3, most of what you said went right over my head.  ;)  I wasn&#039;t even aware that there was a difference between a &quot;class member&quot; and a &quot;class instance&quot;.  :o

Can you still use &quot;+&quot; to concatenate strings in AS3? If Adobe won&#039;t let me override the operators, maybe there&#039;s a chance they&#039;ll add a new feature allowing us to use operators on to the Point class.</description>
		<content:encoded><![CDATA[<p>As I&#8217;m not an expert at writing classes or AS3, most of what you said went right over my head.  <img src='http://www.pixelwit.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   I wasn&#8217;t even aware that there was a difference between a &#8220;class member&#8221; and a &#8220;class instance&#8221;.  <img src='http://www.pixelwit.com/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
<p>Can you still use &#8220;+&#8221; to concatenate strings in AS3? If Adobe won&#8217;t let me override the operators, maybe there&#8217;s a chance they&#8217;ll add a new feature allowing us to use operators on to the Point class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sk</title>
		<link>http://www.pixelwit.com/blog/2007/07/classes-and-operators/comment-page-1/#comment-474</link>
		<dc:creator>sk</dc:creator>
		<pubDate>Mon, 16 Jul 2007 00:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelwit.com/blog/2007/07/12/classes-and-operators/#comment-474</guid>
		<description>Hey, at the moment there is no mention of operator overloading being supported in AS3. That&#039;s a shame, as I agree it&#039;d be nice to have. 

The AS3 language is really powerful compared to AS2 but there are still a few little things missing that would make it better, operator overloading being one of them!

So using operators on an actual class instance is a no - but you did mention using operators on class members. If the particular class member is an instance of a class the closest you could get is by using the get/set methods to allow custom accessor/mutator functions for that member.</description>
		<content:encoded><![CDATA[<p>Hey, at the moment there is no mention of operator overloading being supported in AS3. That&#8217;s a shame, as I agree it&#8217;d be nice to have. </p>
<p>The AS3 language is really powerful compared to AS2 but there are still a few little things missing that would make it better, operator overloading being one of them!</p>
<p>So using operators on an actual class instance is a no &#8211; but you did mention using operators on class members. If the particular class member is an instance of a class the closest you could get is by using the get/set methods to allow custom accessor/mutator functions for that member.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

