<?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: Singleton Classes in Actionscript 3.0</title>
	<atom:link href="http://blog.abesh.net/2008/07/27/singleton-classes-in-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.abesh.net/2008/07/27/singleton-classes-in-actionscript-30/</link>
	<description></description>
	<lastBuildDate>Sat, 19 Jun 2010 07:28:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Mrinal Wadhwa</title>
		<link>http://blog.abesh.net/2008/07/27/singleton-classes-in-actionscript-30/comment-page-1/#comment-30</link>
		<dc:creator>Mrinal Wadhwa</dc:creator>
		<pubDate>Tue, 29 Jul 2008 18:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.abesh.net/?p=71#comment-30</guid>
		<description>Abesh,

This topic has been debated a lot in the AS3 dev community... since private constructors are not available in AS3 a Singleton in its true form isn\&#039;t really possible. Most workarounds, like the one you suggested above are based on runtime errors.

Runtime errors as opposed to compile time errors don\&#039;t make me feel very comfortable

My personal preferred approach is to just document a Singleton class as a Singleton and let my team know .. although its nice to throw a runtime error, there\&#039;s a good chance the error is never noticed during development.

Private constructors would certainly be nice to have and I know a lot of people are lobbying for them in the next version of ActionScript.

Mrinal</description>
		<content:encoded><![CDATA[<p>Abesh,</p>
<p>This topic has been debated a lot in the AS3 dev community&#8230; since private constructors are not available in AS3 a Singleton in its true form isn\&#8217;t really possible. Most workarounds, like the one you suggested above are based on runtime errors.</p>
<p>Runtime errors as opposed to compile time errors don\&#8217;t make me feel very comfortable</p>
<p>My personal preferred approach is to just document a Singleton class as a Singleton and let my team know .. although its nice to throw a runtime error, there\&#8217;s a good chance the error is never noticed during development.</p>
<p>Private constructors would certainly be nice to have and I know a lot of people are lobbying for them in the next version of ActionScript.</p>
<p>Mrinal</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (user agent is rejected)
Database Caching 1/4 queries in 0.004 seconds using memcached

Served from: blog.abesh.net @ 2010-07-31 19:32:52 -->