<?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: Constants</title>
	<atom:link href="http://www.ghost23.de/2009/03/constants/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghost23.de/2009/03/constants/</link>
	<description>A blog about Flash and stuff</description>
	<lastBuildDate>Mon, 07 Jun 2010 13:37:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: AS3 &#8211; feature request filed &#8211; const initialization in constructor &#124; Ghost23 Blog</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-101</link>
		<dc:creator>AS3 &#8211; feature request filed &#8211; const initialization in constructor &#124; Ghost23 Blog</dc:creator>
		<pubDate>Sat, 15 May 2010 12:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-101</guid>
		<description>[...] already wrote about this a while ago, but now i have filed a feature request in the bug base of Adobe. I want const fields [...]</description>
		<content:encoded><![CDATA[<p>[...] already wrote about this a while ago, but now i have filed a feature request in the bug base of Adobe. I want const fields [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Schliebner</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-66</link>
		<dc:creator>Alex Schliebner</dc:creator>
		<pubDate>Thu, 09 Jul 2009 12:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-66</guid>
		<description>I desagree with holger. In Java with a final class member Sven&#039;s code would work. The initialization of a final member in Java happens at runtime. It _must_ be in line with its declaration _or_ inside the constructor. Further assignments to a final member or a missing initialization result in a compiler error.
I agree with Sven, that the documentation is imprecise. You could understand it the way Sven did - similar to Java&#039;s final modifier. But that&#039;s not what it really is. A const looks to more like the C/C++ precompiler statement #define.
</description>
		<content:encoded><![CDATA[<p>I desagree with holger. In Java with a final class member Sven&#8217;s code would work. The initialization of a final member in Java happens at runtime. It _must_ be in line with its declaration _or_ inside the constructor. Further assignments to a final member or a missing initialization result in a compiler error.<br />
I agree with Sven, that the documentation is imprecise. You could understand it the way Sven did &#8211; similar to Java&#8217;s final modifier. But that&#8217;s not what it really is. A const looks to more like the C/C++ precompiler statement #define.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Busse</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-65</link>
		<dc:creator>Sven Busse</dc:creator>
		<pubDate>Thu, 09 Apr 2009 15:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-65</guid>
		<description>hi,
understood. I think, that final keyword for java was, what i wanted to say. Primitive variables are usually initialized with undefined in Actionscript. Objects with null. So at least, the documentation should say, that a constant has to be initialized with the desired value right away.
</description>
		<content:encoded><![CDATA[<p>hi,<br />
understood. I think, that final keyword for java was, what i wanted to say. Primitive variables are usually initialized with undefined in Actionscript. Objects with null. So at least, the documentation should say, that a constant has to be initialized with the desired value right away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: holger</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-64</link>
		<dc:creator>holger</dc:creator>
		<pubDate>Thu, 09 Apr 2009 13:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-64</guid>
		<description>Moin Sven,
Java doesn&#039;t have something like real constants. Just object properties with the final modifier, which means that a value may be assigned only once to the property.  Your script would therefore not work in Java either.
To my understanding the documentation is explaining it correctly, but you have to keep in mind that the declaration already assigns a value implicitly, usually null or 0. Thus your example would result in two assignments, one implict and one explicit.
</description>
		<content:encoded><![CDATA[<p>Moin Sven,<br />
Java doesn&#8217;t have something like real constants. Just object properties with the final modifier, which means that a value may be assigned only once to the property.  Your script would therefore not work in Java either.<br />
To my understanding the documentation is explaining it correctly, but you have to keep in mind that the declaration already assigns a value implicitly, usually null or 0. Thus your example would result in two assignments, one implict and one explicit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Busse</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-63</link>
		<dc:creator>Sven Busse</dc:creator>
		<pubDate>Mon, 30 Mar 2009 22:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-63</guid>
		<description>hi,
yes, but it is explained differently in the documentation and in other languages, like Java for example, my little script would be possible.
</description>
		<content:encoded><![CDATA[<p>hi,<br />
yes, but it is explained differently in the documentation and in other languages, like Java for example, my little script would be possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marshall</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-62</link>
		<dc:creator>marshall</dc:creator>
		<pubDate>Mon, 30 Mar 2009 22:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-62</guid>
		<description>Constant is not variable, it is value. During compile every occurence of const is converted to exact value, so it can&#039;t be set during runtime
</description>
		<content:encoded><![CDATA[<p>Constant is not variable, it is value. During compile every occurence of const is converted to exact value, so it can&#8217;t be set during runtime</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Busse</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-61</link>
		<dc:creator>Sven Busse</dc:creator>
		<pubDate>Mon, 30 Mar 2009 18:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-61</guid>
		<description>hi,
yes, i know. That&#039;s the point. It shouldn&#039;t be that way.
</description>
		<content:encoded><![CDATA[<p>hi,<br />
yes, i know. That&#8217;s the point. It shouldn&#8217;t be that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwopitz</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-60</link>
		<dc:creator>jwopitz</dc:creator>
		<pubDate>Mon, 30 Mar 2009 18:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-60</guid>
		<description>const are declared inline like so:
const MY_SOMETHING:String = &quot;test&quot;;
Trying to assign it elsewhere rather than where it is declared will through a Compile Time Error (CTE)
</description>
		<content:encoded><![CDATA[<p>const are declared inline like so:<br />
const MY_SOMETHING:String = &#8220;test&#8221;;<br />
Trying to assign it elsewhere rather than where it is declared will through a Compile Time Error (CTE)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hugo m.</title>
		<link>http://www.ghost23.de/2009/03/constants/comment-page-1/#comment-59</link>
		<dc:creator>hugo m.</dc:creator>
		<pubDate>Mon, 30 Mar 2009 17:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghost23.de/blog/?p=101#comment-59</guid>
		<description>const mySomething:String = &quot;Test&quot;;
you have to assign it right away :)
</description>
		<content:encoded><![CDATA[<p>const mySomething:String = &#8220;Test&#8221;;<br />
you have to assign it right away <img src='http://www.ghost23.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
