<?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: Funny things about static const in ActionScript 3</title>
	<atom:link href="http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/</link>
	<description>Life in a Flash</description>
	<lastBuildDate>Wed, 14 Dec 2011 03:54:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: gvd</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-1254</link>
		<dc:creator>gvd</dc:creator>
		<pubDate>Mon, 24 Oct 2011 17:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-1254</guid>
		<description>every other language with constants have exactly same behavior, so it&#039;s exactly right and not funny.</description>
		<content:encoded><![CDATA[<p>every other language with constants have exactly same behavior, so it&#8217;s exactly right and not funny.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CCER</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-1125</link>
		<dc:creator>CCER</dc:creator>
		<pubDate>Tue, 08 Feb 2011 20:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-1125</guid>
		<description>The reference to the object BASE is constant and can&#039;t be redefined to point to another Object. It has no effect on the object&#039;s members.</description>
		<content:encoded><![CDATA[<p>The reference to the object BASE is constant and can&#8217;t be redefined to point to another Object. It has no effect on the object&#8217;s members.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jev</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-995</link>
		<dc:creator>Jev</dc:creator>
		<pubDate>Thu, 08 Apr 2010 10:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-995</guid>
		<description>If as3 is like most other languages, this is because any variable of a non-primitive (object) type only stores the reference to the actual object (i.e. the memory address of the object data). So the const is still constant because you cant set the BASE const to point to a different object, as you can with a normal var, such as:

var obj1:Object = {name:&#039;banana&#039;, color:&#039;yellow&#039;};
var obj2:Object = obj1;
obj2.name = &#039;apple&#039;;
trace(obj1.name); //output is apple</description>
		<content:encoded><![CDATA[<p>If as3 is like most other languages, this is because any variable of a non-primitive (object) type only stores the reference to the actual object (i.e. the memory address of the object data). So the const is still constant because you cant set the BASE const to point to a different object, as you can with a normal var, such as:</p>
<p>var obj1:Object = {name:&#8217;banana&#8217;, color:&#8217;yellow&#8217;};<br />
var obj2:Object = obj1;<br />
obj2.name = &#8216;apple&#8217;;<br />
trace(obj1.name); //output is apple</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tamt</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-720</link>
		<dc:creator>tamt</dc:creator>
		<pubDate>Sat, 07 Feb 2009 01:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-720</guid>
		<description>i think it&#039;s not funny, it should be that</description>
		<content:encoded><![CDATA[<p>i think it&#8217;s not funny, it should be that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recent Links Tagged With "actionscript3" - JabberTags</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-613</link>
		<dc:creator>Recent Links Tagged With "actionscript3" - JabberTags</dc:creator>
		<pubDate>Tue, 14 Oct 2008 19:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-613</guid>
		<description>[...] by wolsab on Tue 14-10-2008   org.as3s.Tween at AS3S.ORG Saved by saaipuntnl on Mon 13-10-2008   Funny things about static const in ActionScript 3 Saved by freckle73 on Mon 13-10-2008   ActionScriptCheatSheet.com - Adobe Flex, Adobe AIR, [...]</description>
		<content:encoded><![CDATA[<p>[...] by wolsab on Tue 14-10-2008   org.as3s.Tween at AS3S.ORG Saved by saaipuntnl on Mon 13-10-2008   Funny things about static const in ActionScript 3 Saved by freckle73 on Mon 13-10-2008   ActionScriptCheatSheet.com &#8211; Adobe Flex, Adobe AIR, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 5566</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-585</link>
		<dc:creator>5566</dc:creator>
		<pubDate>Sat, 23 Aug 2008 08:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-585</guid>
		<description>I thought only numbers, strings etc can be a constant. After giving some more thoughts, I realize a constant object is a constant pointer pointing to something can be changed from time to time.</description>
		<content:encoded><![CDATA[<p>I thought only numbers, strings etc can be a constant. After giving some more thoughts, I realize a constant object is a constant pointer pointing to something can be changed from time to time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-583</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sat, 23 Aug 2008 07:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-583</guid>
		<description>Actually, I think this makes a lot of sense.

FunnyStaticConst:BASE is a static constant, not it&#039;s members, so of course you should be able to change them. You should not, however be allowed to redefine FunnyStaticConst:BASE altogether (such as FunnyStaticConst:BASE = {who:&#039;me&#039;, when:&#039;now&#039;}).

BTW: Either your wp spam blocker doesn&#039;t like Safari, or my copy of Safari is jacked up.</description>
		<content:encoded><![CDATA[<p>Actually, I think this makes a lot of sense.</p>
<p>FunnyStaticConst:BASE is a static constant, not it&#8217;s members, so of course you should be able to change them. You should not, however be allowed to redefine FunnyStaticConst:BASE altogether (such as FunnyStaticConst:BASE = {who:&#8217;me&#8217;, when:&#8217;now&#8217;}).</p>
<p>BTW: Either your wp spam blocker doesn&#8217;t like Safari, or my copy of Safari is jacked up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dev</title>
		<link>http://shang-liang.com/blog/funny-things-about-static-const-in-actionscript-3/comment-page-1/#comment-576</link>
		<dc:creator>Dev</dc:creator>
		<pubDate>Fri, 22 Aug 2008 17:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/?p=77#comment-576</guid>
		<description>It&#039;s really funny !

Object is a dynamic class, so its properties can be added at run time. May be this situation happens to any other dynamic classes as well. Let&#039;s try it on.</description>
		<content:encoded><![CDATA[<p>It&#8217;s really funny !</p>
<p>Object is a dynamic class, so its properties can be added at run time. May be this situation happens to any other dynamic classes as well. Let&#8217;s try it on.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

