<?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: Why Does This C# Code Compile?</title>
	<atom:link href="http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/</link>
	<description>Tech Evangelist Joey deVilla on software development, tech news and other nerdy stuff</description>
	<lastBuildDate>Thu, 19 Nov 2009 18:44:37 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ry4an</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/comment-page-1/#comment-2713</link>
		<dc:creator>Ry4an</dc:creator>
		<pubDate>Sat, 29 Nov 2008 16:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comment-2713</guid>
		<description>I first saw this in the &lt;a&gt;Java Puzzlers book&lt;/a&gt;.  Full of fun little compiler oddities.</description>
		<content:encoded><![CDATA[<p>I first saw this in the <a>Java Puzzlers book</a>.  Full of fun little compiler oddities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey deVilla</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/comment-page-1/#comment-2710</link>
		<dc:creator>Joey deVilla</dc:creator>
		<pubDate>Sat, 29 Nov 2008 03:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comment-2710</guid>
		<description>&lt;strong&gt;@David Janes:&lt;/strong&gt; Yup, there&#039;s a &lt;code&gt;goto&lt;/code&gt; statement in C#.

C# also has the &lt;code&gt;break&lt;/code&gt; and &lt;code&gt;continue&lt;/code&gt; keywords, but unlike Java, they don&#039;t support labels and are limited to breaking out of or starting at the next iteration of the current loop. That&#039;s what C#&#039;s &lt;code&gt;goto&lt;/code&gt; (which java doesn&#039;t have) is for.</description>
		<content:encoded><![CDATA[<p><strong>@David Janes:</strong> Yup, there&#8217;s a <code>goto</code> statement in C#.</p>
<p>C# also has the <code>break</code> and <code>continue</code> keywords, but unlike Java, they don&#8217;t support labels and are limited to breaking out of or starting at the next iteration of the current loop. That&#8217;s what C#&#8217;s <code>goto</code> (which java doesn&#8217;t have) is for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/comment-page-1/#comment-2709</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Sat, 29 Nov 2008 00:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comment-2709</guid>
		<description>Label? Does C# have GOTOs?</description>
		<content:encoded><![CDATA[<p>Label? Does C# have GOTOs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny V</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/comment-page-1/#comment-2708</link>
		<dc:creator>Danny V</dc:creator>
		<pubDate>Sat, 29 Nov 2008 00:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comment-2708</guid>
		<description>I guess the simplest answer is correct. I was thinking that maybe C# parses URLs in some way but the label-comment combo came to mind too.</description>
		<content:encoded><![CDATA[<p>I guess the simplest answer is correct. I was thinking that maybe C# parses URLs in some way but the label-comment combo came to mind too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/comment-page-1/#comment-2707</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Fri, 28 Nov 2008 23:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comment-2707</guid>
		<description>That was my first guess and I&#039;ve never done anything with C#.  Still a neat little puzzle though.  =)</description>
		<content:encoded><![CDATA[<p>That was my first guess and I&#8217;ve never done anything with C#.  Still a neat little puzzle though.  =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey deVilla</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/comment-page-1/#comment-2706</link>
		<dc:creator>Joey deVilla</dc:creator>
		<pubDate>Fri, 28 Nov 2008 23:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comment-2706</guid>
		<description>&lt;strong&gt;The Asnwer:&lt;/strong&gt;
The compiler interprets the line &lt;code&gt;http://www.globalnerdy.com&lt;/code&gt; this way:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;http:&lt;/code&gt; is a label.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;//www.globalnerdy.com&lt;/code&gt; is a comment.&lt;/li&gt;
&lt;/ul&gt;</description>
		<content:encoded><![CDATA[<p><strong>The Asnwer:</strong><br />
The compiler interprets the line <code><a href="http://www.globalnerdy.com" rel="nofollow">http://www.globalnerdy.com</a></code> this way:</p>
<ul>
<li><code>http:</code> is a label.</li>
<li><code>//www.globalnerdy.com</code> is a comment.</li>
</ul>
]]></content:encoded>
	</item>
</channel>
</rss>
