<?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>Comments on: Digression into Swaps</title>
	<atom:link href="http://blog.moorejen.com/2007/05/digression-into-swaps/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.moorejen.com/2007/05/digression-into-swaps/</link>
	<description>Wer ist der Wasser?</description>
	<pubDate>Wed, 07 Jan 2009 02:22:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: moeffju</title>
		<link>http://blog.moorejen.com/2007/05/digression-into-swaps/#comment-669</link>
		<dc:creator>moeffju</dc:creator>
		<pubDate>Wed, 11 Jul 2007 15:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorejen.com/?p=60#comment-669</guid>
		<description>Am I ever glad to program in sane languages that can do swapping on one line, like Perl (but Python is much better).</description>
		<content:encoded><![CDATA[<p>Am I ever glad to program in sane languages that can do swapping on one line, like Perl (but Python is much better).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mfalcon24</title>
		<link>http://blog.moorejen.com/2007/05/digression-into-swaps/#comment-567</link>
		<dc:creator>mfalcon24</dc:creator>
		<pubDate>Wed, 06 Jun 2007 05:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorejen.com/?p=60#comment-567</guid>
		<description>That is cool... not sure if C++ compilers would keep the optimization in however - if you really need to cut the extra variable out it might be best to do it in assembly.</description>
		<content:encoded><![CDATA[<p>That is cool&#8230; not sure if C++ compilers would keep the optimization in however - if you really need to cut the extra variable out it might be best to do it in assembly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saintamh</title>
		<link>http://blog.moorejen.com/2007/05/digression-into-swaps/#comment-560</link>
		<dc:creator>saintamh</dc:creator>
		<pubDate>Sun, 03 Jun 2007 13:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorejen.com/?p=60#comment-560</guid>
		<description>Oh, that's cool! This:

($a, $b) = ($b, $a);

would also do the job (in Perl) and might be a bit more readable :)</description>
		<content:encoded><![CDATA[<p>Oh, that&#8217;s cool! This:</p>
<p>($a, $b) = ($b, $a);</p>
<p>would also do the job (in Perl) and might be a bit more readable <img src='http://blog.moorejen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michi</title>
		<link>http://blog.moorejen.com/2007/05/digression-into-swaps/#comment-423</link>
		<dc:creator>Michi</dc:creator>
		<pubDate>Wed, 09 May 2007 15:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorejen.com/?p=60#comment-423</guid>
		<description>Neat, I can vaguely remember doing that once in a programming class two years ago. Now it will hopefully stay on my mind!</description>
		<content:encoded><![CDATA[<p>Neat, I can vaguely remember doing that once in a programming class two years ago. Now it will hopefully stay on my mind!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BunnyToaster</title>
		<link>http://blog.moorejen.com/2007/05/digression-into-swaps/#comment-419</link>
		<dc:creator>BunnyToaster</dc:creator>
		<pubDate>Tue, 08 May 2007 21:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorejen.com/?p=60#comment-419</guid>
		<description>If you worry about arithmetic overflow, XOR comes to the rescue

#include 

main() {
int a =5;
int b=7;

a = a ^b;
b = b ^a;
a = a^ b;

printf ("%d %d\n", a , b);
}</description>
		<content:encoded><![CDATA[<p>If you worry about arithmetic overflow, XOR comes to the rescue</p>
<p>#include </p>
<p>main() {<br />
int a =5;<br />
int b=7;</p>
<p>a = a ^b;<br />
b = b ^a;<br />
a = a^ b;</p>
<p>printf (&#8221;%d %d\n&#8221;, a , b);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucello</title>
		<link>http://blog.moorejen.com/2007/05/digression-into-swaps/#comment-414</link>
		<dc:creator>Lucello</dc:creator>
		<pubDate>Tue, 08 May 2007 15:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorejen.com/?p=60#comment-414</guid>
		<description>I should point out that this post arose from a pasta gratin, the baking of which required a swap of two pans to different racks in the oven. Many thanks to Jeremy for englightening us on this subject. 
&lt;br /&gt;
:)</description>
		<content:encoded><![CDATA[<p>I should point out that this post arose from a pasta gratin, the baking of which required a swap of two pans to different racks in the oven. Many thanks to Jeremy for englightening us on this subject.<br />
<br />
 <img src='http://blog.moorejen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
