<?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: My Singleton Base Class</title>
	<atom:link href="http://blog.nickgravelyn.com/2009/05/my-singleton-base-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nickgravelyn.com/2009/05/my-singleton-base-class/</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 01:34:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Nick</title>
		<link>http://blog.nickgravelyn.com/2009/05/my-singleton-base-class/comment-page-1/#comment-189</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Thu, 04 Jun 2009 20:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=694#comment-189</guid>
		<description>If you are going to want just one of your components to be a singleton, I&#039;d say just implement the singleton design for that one type. If you have a bunch of components you want to be singletons, I&#039;d make a SingletonGameComponent class which derives from GameComponent and adds in the singleton behavior. You could do the same with DrawableGameComponent to make a SingletonDrawableGameComponent if you wanted.</description>
		<content:encoded><![CDATA[<p>If you are going to want just one of your components to be a singleton, I&#8217;d say just implement the singleton design for that one type. If you have a bunch of components you want to be singletons, I&#8217;d make a SingletonGameComponent class which derives from GameComponent and adds in the singleton behavior. You could do the same with DrawableGameComponent to make a SingletonDrawableGameComponent if you wanted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nstod</title>
		<link>http://blog.nickgravelyn.com/2009/05/my-singleton-base-class/comment-page-1/#comment-188</link>
		<dc:creator>nstod</dc:creator>
		<pubDate>Thu, 04 Jun 2009 20:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=694#comment-188</guid>
		<description>Nick,

Got a question for you.  Let&#039;s say I wanted a Singleton GameComponent.  I obviously can&#039;t inherit from both, and I&#039;m having a hard time thinking up a design without re-creating the Singleton class for each type where I would need to inherit from multiple classes (I have a GameBase class that inherits from Game that I think would be helpful to make a Singleton, as well).  Any ideas?</description>
		<content:encoded><![CDATA[<p>Nick,</p>
<p>Got a question for you.  Let&#8217;s say I wanted a Singleton GameComponent.  I obviously can&#8217;t inherit from both, and I&#8217;m having a hard time thinking up a design without re-creating the Singleton class for each type where I would need to inherit from multiple classes (I have a GameBase class that inherits from Game that I think would be helpful to make a Singleton, as well).  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Cummings</title>
		<link>http://blog.nickgravelyn.com/2009/05/my-singleton-base-class/comment-page-1/#comment-187</link>
		<dc:creator>Michael Cummings</dc:creator>
		<pubDate>Tue, 02 Jun 2009 14:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=694#comment-187</guid>
		<description>Nick,
   Only thing I can think of is that this may not be thread safe. My implementation is a little more involved than yours ( I like the simplicity ) but does provide a threadsafe instatiation.

http://blog.magenic.com/blogs/michaelc/archive/2006/03/11/Simple-but-it-works.aspx</description>
		<content:encoded><![CDATA[<p>Nick,<br />
   Only thing I can think of is that this may not be thread safe. My implementation is a little more involved than yours ( I like the simplicity ) but does provide a threadsafe instatiation.</p>
<p><a href="http://blog.magenic.com/blogs/michaelc/archive/2006/03/11/Simple-but-it-works.aspx" rel="nofollow">http://blog.magenic.com/blogs/michaelc/archive/2006/03/11/Simple-but-it-works.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjoern</title>
		<link>http://blog.nickgravelyn.com/2009/05/my-singleton-base-class/comment-page-1/#comment-186</link>
		<dc:creator>Bjoern</dc:creator>
		<pubDate>Fri, 29 May 2009 18:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=694#comment-186</guid>
		<description>A cleaner way would be to use an IoC container instead of a Singleton.</description>
		<content:encoded><![CDATA[<p>A cleaner way would be to use an IoC container instead of a Singleton.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

