<?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: 4k Game Contest &#8211; and a word about ternary operations in AS3</title>
	<atom:link href="http://www.photonstorm.com/archives/295/4k-game-contest-and-a-word-about-ternary-operations-in-as3/feed" rel="self" type="application/rss+xml" />
	<link>http://www.photonstorm.com/archives/295/4k-game-contest-and-a-word-about-ternary-operations-in-as3</link>
	<description>AS3 and Indie Game Development</description>
	<lastBuildDate>Sun, 25 Jul 2010 00:07:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: rich</title>
		<link>http://www.photonstorm.com/archives/295/4k-game-contest-and-a-word-about-ternary-operations-in-as3/comment-page-1#comment-1138</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Wed, 18 Feb 2009 02:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.photonstorm.com/?p=295#comment-1138</guid>
		<description>Ahh yes, it was the extra assignment causing the increase in size.

However, your first version trumped the ternary by quite some margin - saving an extra 6 bytes in total :)</description>
		<content:encoded><![CDATA[<p>Ahh yes, it was the extra assignment causing the increase in size.</p>
<p>However, your first version trumped the ternary by quite some margin &#8211; saving an extra 6 bytes in total <img src='http://www.photonstorm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://www.photonstorm.com/archives/295/4k-game-contest-and-a-word-about-ternary-operations-in-as3/comment-page-1#comment-1137</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Wed, 18 Feb 2009 01:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.photonstorm.com/?p=295#comment-1137</guid>
		<description>Sorry - last comment I promise! Should be * 400 in the second line of the example above, not * 550...</description>
		<content:encoded><![CDATA[<p>Sorry &#8211; last comment I promise! Should be * 400 in the second line of the example above, not * 550&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://www.photonstorm.com/archives/295/4k-game-contest-and-a-word-about-ternary-operations-in-as3/comment-page-1#comment-1136</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Wed, 18 Feb 2009 01:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.photonstorm.com/?p=295#comment-1136</guid>
		<description>btw, your ternary examples should probably be:

x = (lx == 0) ? Math.random() * 550 : lx;
y = (ly == 0) ? Math.random() * 550 : ly;

The extra assignments might explain the extra bytes...

Cheers,

Kelvin :)</description>
		<content:encoded><![CDATA[<p>btw, your ternary examples should probably be:</p>
<p>x = (lx == 0) ? Math.random() * 550 : lx;<br />
y = (ly == 0) ? Math.random() * 550 : ly;</p>
<p>The extra assignments might explain the extra bytes&#8230;</p>
<p>Cheers,</p>
<p>Kelvin <img src='http://www.photonstorm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://www.photonstorm.com/archives/295/4k-game-contest-and-a-word-about-ternary-operations-in-as3/comment-page-1#comment-1135</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Wed, 18 Feb 2009 01:19:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.photonstorm.com/?p=295#comment-1135</guid>
		<description>How about this?

x = lx &#124;&#124; Math.random() * 550;
y = ly &#124;&#124; Math.random() * 400;

I&#039;d be interested to know if it came out smaller or not... It certainly looks smaller...

Cheers,

Kelvin :)</description>
		<content:encoded><![CDATA[<p>How about this?</p>
<p>x = lx || Math.random() * 550;<br />
y = ly || Math.random() * 400;</p>
<p>I&#8217;d be interested to know if it came out smaller or not&#8230; It certainly looks smaller&#8230;</p>
<p>Cheers,</p>
<p>Kelvin <img src='http://www.photonstorm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
