<?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: AS3 &#8212; on the lack of private and protected constructors</title>
	<atom:link href="http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/feed/" rel="self" type="application/rss+xml" />
	<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/</link>
	<description>music, technology, interfaces</description>
	<lastBuildDate>Sun, 29 Jan 2012 05:22:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Enric</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-72169</link>
		<dc:creator>Enric</dc:creator>
		<pubDate>Sat, 13 Oct 2007 21:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-72169</guid>
		<description>As far as I can see there&#039;s no generalized method to clean-up when a application terminates.  I have a javascript utility that dymanicaly creates media embeds into a DIV (or other HTML container).  But on Opera the NetStream isn&#039;t closed after the first dynamic embed on the page.  So the flash video doesn&#039;t play.  Why are destructors missing?  Is this the design of ECMAScript edition 4?

  Thanks,

   Enric</description>
		<content:encoded><![CDATA[<p>As far as I can see there&#8217;s no generalized method to clean-up when a application terminates.  I have a javascript utility that dymanicaly creates media embeds into a DIV (or other HTML container).  But on Opera the NetStream isn&#8217;t closed after the first dynamic embed on the page.  So the flash video doesn&#8217;t play.  Why are destructors missing?  Is this the design of ECMAScript edition 4?</p>
<p>  Thanks,</p>
<p>   Enric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juank</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-64499</link>
		<dc:creator>Juank</dc:creator>
		<pubDate>Wed, 03 Oct 2007 01:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-64499</guid>
		<description>I also wonder if you will also consider Destructor methods and/or operator overloading.</description>
		<content:encoded><![CDATA[<p>I also wonder if you will also consider Destructor methods and/or operator overloading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sho</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-2366</link>
		<dc:creator>sho</dc:creator>
		<pubDate>Tue, 25 Jul 2006 22:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-2366</guid>
		<description>You know, I don&#039;t 100% remember what the discussion around method overloading. I recognize that it&#039;s a useful feature, and we decided not to tackle it in ActionScript 3, presumably because of time.

I think the reason the lack of private constructors raised such a fuss is that unlike method overloading, this is a feature that was previously available in ActionScript 2.</description>
		<content:encoded><![CDATA[<p>You know, I don&#8217;t 100% remember what the discussion around method overloading. I recognize that it&#8217;s a useful feature, and we decided not to tackle it in ActionScript 3, presumably because of time.</p>
<p>I think the reason the lack of private constructors raised such a fuss is that unlike method overloading, this is a feature that was previously available in ActionScript 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joost Nuijten</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-2365</link>
		<dc:creator>Joost Nuijten</dc:creator>
		<pubDate>Tue, 25 Jul 2006 22:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-2365</guid>
		<description>Maybe I missed this one, but what happened to &#039;method overloading&#039; ?</description>
		<content:encoded><![CDATA[<p>Maybe I missed this one, but what happened to &#8216;method overloading&#8217; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Nussbaum</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-239</link>
		<dc:creator>Jason Nussbaum</dc:creator>
		<pubDate>Thu, 06 Apr 2006 06:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-239</guid>
		<description>Thanks for the clarification...I&#039;m also glad to hear it&#039;s only &#039;postponed&#039; for the time being. I ranted about this way back when I first noticed it...
</description>
		<content:encoded><![CDATA[<p>Thanks for the clarification&#8230;I&#8217;m also glad to hear it&#8217;s only &#8216;postponed&#8217; for the time being. I ranted about this way back when I first noticed it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sho</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-238</link>
		<dc:creator>Sho</dc:creator>
		<pubDate>Wed, 05 Apr 2006 18:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-238</guid>
		<description>Enum and abstract are definitely things I could imagine being added to the language at some point. I don&#039;t know if they are on the radar at present.

I&#039;ll ask about whether the spec could be published in its current draft form.

As for Class.newInstance(args), that&#039;s a good suggestion. Thanks!</description>
		<content:encoded><![CDATA[<p>Enum and abstract are definitely things I could imagine being added to the language at some point. I don&#8217;t know if they are on the radar at present.</p>
<p>I&#8217;ll ask about whether the spec could be published in its current draft form.</p>
<p>As for Class.newInstance(args), that&#8217;s a good suggestion. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Halm</title>
		<link>http://kuwamoto.org/2006/04/05/as3-on-the-lack-of-private-and-protected-constructors/comment-page-1/#comment-237</link>
		<dc:creator>Jens Halm</dc:creator>
		<pubDate>Wed, 05 Apr 2006 18:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/?p=54#comment-237</guid>
		<description>Glad to hear that protected and private constructors are just postponed. I really thought this was a limitation Adobe considered as a feature. At least I can now stop publicly whining about it.  ;)

And yes, they are not that important for enums. I miss them more for abstract classes and always thought that, for example, DisplayObjects constructor throwing runtime exceptions is not an elegant solution since this should be detected at compile time.

Btw. since enum and abstract are reserved keywords, is there a chance we see those features in AS 4 or is this something the spec group is currently not working on? And are there any drafts of the spec publicly available? If I google for it, all I can find are drafts that are at least three years old.

And one more small thing I would like to see added to the spec in the future is a method like:

Class.newInstance(args:Array):Object

which would be kind of Function.apply for constructors. I know the workarounds using special initialization methods, but they might not be feasible for existing classes. In AS 2 it was easy to hack around this limitation using the __proto__ property. There were already several postings on Flexcoders for this issue, so I think I&#039;m not the only developer missing this feature.

But I don&#039;t want to come across too picky. ;-) AS 3 and especially the new Display API is a great step forward.</description>
		<content:encoded><![CDATA[<p>Glad to hear that protected and private constructors are just postponed. I really thought this was a limitation Adobe considered as a feature. At least I can now stop publicly whining about it.  ;)</p>
<p>And yes, they are not that important for enums. I miss them more for abstract classes and always thought that, for example, DisplayObjects constructor throwing runtime exceptions is not an elegant solution since this should be detected at compile time.</p>
<p>Btw. since enum and abstract are reserved keywords, is there a chance we see those features in AS 4 or is this something the spec group is currently not working on? And are there any drafts of the spec publicly available? If I google for it, all I can find are drafts that are at least three years old.</p>
<p>And one more small thing I would like to see added to the spec in the future is a method like:</p>
<p>Class.newInstance(args:Array):Object</p>
<p>which would be kind of Function.apply for constructors. I know the workarounds using special initialization methods, but they might not be feasible for existing classes. In AS 2 it was easy to hack around this limitation using the __proto__ property. There were already several postings on Flexcoders for this issue, so I think I&#8217;m not the only developer missing this feature.</p>
<p>But I don&#8217;t want to come across too picky. ;-) AS 3 and especially the new Display API is a great step forward.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

