<?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"
	>
<channel>
	<title>Shang Liang |   i, for loop, uint and int in ActionScript 3</title>
	<atom:link href="http://shang-liang.com/blog/i-for-loop-uint-and-int/feed/" rel="self" type="application/rss+xml" />
	<link>http://shang-liang.com/blog/i-for-loop-uint-and-int/</link>
	<description>Life in a Flash</description>
	<pubDate>Mon, 13 Oct 2008 07:46:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>Shang Liang |   i, for loop, uint and int in ActionScript 3</title>
		<link>http://shang-liang.com/blog/i-for-loop-uint-and-int/#comment-229</link>
		<dc:creator>Christian Cantrell</dc:creator>
		<pubDate>Thu, 14 Feb 2008 18:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/i-for-loop-uint-and-int/#comment-229</guid>
		<description>I usually use uint, though I have had instances where I've had it become a huge positive number.  I figure 4294967295 is just as big of a bug as -1, so I usually don't worry about it.

Christian</description>
		<content:encoded><![CDATA[<p>I usually use uint, though I have had instances where I&#8217;ve had it become a huge positive number.  I figure 4294967295 is just as big of a bug as -1, so I usually don&#8217;t worry about it.</p>
<p>Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Shang Liang |   i, for loop, uint and int in ActionScript 3</title>
		<link>http://shang-liang.com/blog/i-for-loop-uint-and-int/#comment-228</link>
		<dc:creator>Derek Vadneau</dc:creator>
		<pubDate>Thu, 14 Feb 2008 15:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/i-for-loop-uint-and-int/#comment-228</guid>
		<description>For a bit more detail on the subject, check out these entries:
http://www.bit-101.com/blog/?p=908 (surprised kp didn't mention it)
http://tracethis.com/archives/2007/02/14/as3-tip-for-loop-index-should-not-be-uint/
http://kuwamoto.org/2006/06/15/avoid-ints-in-actionscript/</description>
		<content:encoded><![CDATA[<p>For a bit more detail on the subject, check out these entries:<br />
<a href="http://www.bit-101.com/blog/?p=908" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/www.bit-101.com');">http://www.bit-101.com/blog/?p=908</a> (surprised kp didn&#8217;t mention it)<br />
<a href="http://tracethis.com/archives/2007/02/14/as3-tip-for-loop-index-should-not-be-uint/" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/tracethis.com');">http://tracethis.com/archives/2007/02/14/as3-tip-for-loop-index-should-not-be-uint/</a><br />
<a href="http://kuwamoto.org/2006/06/15/avoid-ints-in-actionscript/" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/kuwamoto.org');">http://kuwamoto.org/2006/06/15/avoid-ints-in-actionscript/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Shang Liang |   i, for loop, uint and int in ActionScript 3</title>
		<link>http://shang-liang.com/blog/i-for-loop-uint-and-int/#comment-227</link>
		<dc:creator>Keith Peters</dc:creator>
		<pubDate>Thu, 14 Feb 2008 11:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://shang-liang.com/blog/i-for-loop-uint-and-int/#comment-227</guid>
		<description>I often use uints. Not because of any memory or performance reasons, but because it documents the intention of the variable. You are stating, "this variable is an integer, and should never be negative." The problem is, like you said, when you make it negative, it flops over. I think it would be better if it threw an exception if you tried to make it negative..</description>
		<content:encoded><![CDATA[<p>I often use uints. Not because of any memory or performance reasons, but because it documents the intention of the variable. You are stating, &#8220;this variable is an integer, and should never be negative.&#8221; The problem is, like you said, when you make it negative, it flops over. I think it would be better if it threw an exception if you tried to make it negative..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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