<?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: Variable Life Time</title>
	<atom:link href="http://www.dawnbringer3d.com/?feed=rss2&#038;p=28" rel="self" type="application/rss+xml" />
	<link>http://www.dawnbringer3d.com/?p=28</link>
	<description>Tips &#38; Tricks, Personal News, Game Development</description>
	<lastBuildDate>Wed, 11 Aug 2010 13:17:42 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arto Ruotsalainen</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-29</link>
		<dc:creator>Arto Ruotsalainen</dc:creator>
		<pubDate>Fri, 11 Jan 2008 19:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-29</guid>
		<description>True.

I&#039;ll stick with the pseudo code for now and if I&#039;ll need to do more specific I&#039;ll tag it.

Thanks! :)</description>
		<content:encoded><![CDATA[<p>True.</p>
<p>I&#8217;ll stick with the pseudo code for now and if I&#8217;ll need to do more specific I&#8217;ll tag it.</p>
<p>Thanks! <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Captain P</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-28</link>
		<dc:creator>Captain P</dc:creator>
		<pubDate>Fri, 11 Jan 2008 19:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-28</guid>
		<description>C or C++ specific examples aren&#039;t bad, it&#039;s just that whenever you post something specific, it&#039;s good practice to mention it. :)

Perhaps something like: this is how you would do it in C: _C EXAMPLE CODE_, though in C++ you can also do: _C++ EXAMPLE CODE_. The core idea is still the same, except that some languages are more restricting than others when it comes down to the actual implementation.

Hey, after all, posts can be put into multiple categories at the same time, so why not also slap a C or C++ tag on specific posts? :)</description>
		<content:encoded><![CDATA[<p>C or C++ specific examples aren&#8217;t bad, it&#8217;s just that whenever you post something specific, it&#8217;s good practice to mention it. <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Perhaps something like: this is how you would do it in C: _C EXAMPLE CODE_, though in C++ you can also do: _C++ EXAMPLE CODE_. The core idea is still the same, except that some languages are more restricting than others when it comes down to the actual implementation.</p>
<p>Hey, after all, posts can be put into multiple categories at the same time, so why not also slap a C or C++ tag on specific posts? <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arto Ruotsalainen</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-27</link>
		<dc:creator>Arto Ruotsalainen</dc:creator>
		<pubDate>Fri, 11 Jan 2008 18:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-27</guid>
		<description>Alright, changed to pseudo stuff.

And thanks a lot for the feedback again! :)</description>
		<content:encoded><![CDATA[<p>Alright, changed to pseudo stuff.</p>
<p>And thanks a lot for the feedback again! <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arto Ruotsalainen</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-26</link>
		<dc:creator>Arto Ruotsalainen</dc:creator>
		<pubDate>Fri, 11 Jan 2008 18:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-26</guid>
		<description>The main point is to show what does the variable life time mean in code. You can use any language you want to. :)

I probably just edit all to pseudo - C as I don&#039;t want to raise any language fights around here.

There is a scope after x - loop.</description>
		<content:encoded><![CDATA[<p>The main point is to show what does the variable life time mean in code. You can use any language you want to. <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I probably just edit all to pseudo &#8211; C as I don&#8217;t want to raise any language fights around here.</p>
<p>There is a scope after x &#8211; loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Captain P</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-25</link>
		<dc:creator>Captain P</dc:creator>
		<pubDate>Fri, 11 Jan 2008 17:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-25</guid>
		<description>If something is specific to C, then mark it as such. C and C++ are different languages, that encourage different approaches. A lot of C++ beginners are essentially writing C with classes because they&#039;re never taught what alternative approaches C++ provides.

For C, this would be a nice tip. I&#039;d be even better if you included anynomous scopes in it, since that&#039;s also usefull for controlling variabele lifetimes. If that wasn&#039;t around in C-88, then just mention since what version it was introduced. But for C++, I find this post subtly deceptive.</description>
		<content:encoded><![CDATA[<p>If something is specific to C, then mark it as such. C and C++ are different languages, that encourage different approaches. A lot of C++ beginners are essentially writing C with classes because they&#8217;re never taught what alternative approaches C++ provides.</p>
<p>For C, this would be a nice tip. I&#8217;d be even better if you included anynomous scopes in it, since that&#8217;s also usefull for controlling variabele lifetimes. If that wasn&#8217;t around in C-88, then just mention since what version it was introduced. But for C++, I find this post subtly deceptive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arto Ruotsalainen</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-22</link>
		<dc:creator>Arto Ruotsalainen</dc:creator>
		<pubDate>Fri, 11 Jan 2008 14:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-22</guid>
		<description>Can you do that with C-88? ;)

I&#039;m trying to write my examples so that they are compatible with     C-88-&gt;/C++.

Yeah, the purpose of this example was not to show magic numbers. :)</description>
		<content:encoded><![CDATA[<p>Can you do that with C-88? <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I&#8217;m trying to write my examples so that they are compatible with     C-88->/C++.</p>
<p>Yeah, the purpose of this example was not to show magic numbers. <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Captain P</title>
		<link>http://www.dawnbringer3d.com/?p=28&#038;cpage=1#comment-21</link>
		<dc:creator>Captain P</dc:creator>
		<pubDate>Fri, 11 Jan 2008 14:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.dawnbringer3d.com/?p=28#comment-21</guid>
		<description>I have a problem with your example. Both x and y live beyond the scope they&#039;re used in. I&#039;d go with:
for(int x = 0; x &lt; 20; x++)
{
}
Declaration and initialization at the same time, and no useless x alive anymore after the loop, either. Still a magical number but oh well. It&#039;s &#039;just an example&#039; I guess. ;)</description>
		<content:encoded><![CDATA[<p>I have a problem with your example. Both x and y live beyond the scope they&#8217;re used in. I&#8217;d go with:<br />
for(int x = 0; x &lt; 20; x++)<br />
{<br />
}<br />
Declaration and initialization at the same time, and no useless x alive anymore after the loop, either. Still a magical number but oh well. It&#8217;s &#8216;just an example&#8217; I guess. <img src='http://www.dawnbringer3d.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
