<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>unbland.org blog &#187; 新規タグの追加</title>
	<atom:link href="http://unbland.org/blog/tag/%e6%96%b0%e8%a6%8f%e3%82%bf%e3%82%b0%e3%81%ae%e8%bf%bd%e5%8a%a0/feed" rel="self" type="application/rss+xml" />
	<link>http://unbland.org/blog</link>
	<description>発見の日々の備忘録。主に Web にまつまる技術ネタ。</description>
	<lastBuildDate>Wed, 18 Nov 2009 03:31:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AS3 での Singleton パターン実装</title>
		<link>http://unbland.org/blog/2008/10/23/160.html</link>
		<comments>http://unbland.org/blog/2008/10/23/160.html#comments</comments>
		<pubDate>Thu, 23 Oct 2008 03:37:48 +0000</pubDate>
		<dc:creator>muta244@admin</dc:creator>
				<category><![CDATA[Flash (ActionScript)]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[新規タグの追加]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=160</guid>
		<description><![CDATA[AS3 での Singleton パターン実装はなかなか面倒くさいやり方が多いですが、ちょっとシンプルな実装法を思いついたので紹介します。
※ 08.10.23 追記：
コンストラクタ内部で _instance = th [...]]]></description>
			<content:encoded><![CDATA[<p>AS3 での Singleton パターン実装はなかなか面倒くさいやり方が多いですが、ちょっとシンプルな実装法を思いついたので紹介します。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>ActionScript</strong></small>
</div>
<pre name="code" class="actionscript" style="margin:18px 0;">
package
{
    public class Singleton
    {
        private static var _instance:Singleton = new Singleton();

        public function Singleton():void
        {
            if (_instance)
            {
                throw new ArgumentError(&quot;Singleton クラスは外部からインスタンス化できません.&quot;);
            }
        }

        public static function get instance():Singleton
        {
            return _instance;
        }
    }
}
</pre>
<p>※ 08.10.23 追記：<br />
コンストラクタ内部で _instance = this をしていましたが、コメントを受けて修正しました。</p>
<p>内部で最初に new してしまっておくだけなんですが、今まで思いつきませんでした。問題になりそうな点があったらコメントお願いします。</p>
]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/23/160.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress へ移行</title>
		<link>http://unbland.org/blog/2008/10/06/85.html</link>
		<comments>http://unbland.org/blog/2008/10/06/85.html#comments</comments>
		<pubDate>Sun, 05 Oct 2008 19:15:39 +0000</pubDate>
		<dc:creator>muta244@admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[新規タグの追加]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=85</guid>
		<description><![CDATA[WordPress へ移行しました。これからはちゃんとエントリーを・・・していけたらいいな。
]]></description>
			<content:encoded><![CDATA[<p>WordPress へ移行しました。これからはちゃんとエントリーを・・・していけたらいいな。</p>
]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/06/85.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.408 seconds -->
