<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: The Anti-Case campaign</title>
	<atom:link href="http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/feed/" rel="self" type="application/rss+xml" />
	<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/</link>
	<description>...On the Wings of the Software Wind</description>
	<lastBuildDate>Wed, 08 Sep 2010 12:09:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Weps</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1780</link>
		<dc:creator>Weps</dc:creator>
		<pubDate>Sat, 21 Nov 2009 12:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1780</guid>
		<description>Well, if you want to convince people to vote for it I suggest you change both examples. 

Both are perfect examples why people should NOT use a &quot;case&quot; statement in an OOP language.</description>
		<content:encoded><![CDATA[<p>Well, if you want to convince people to vote for it I suggest you change both examples. </p>
<p>Both are perfect examples why people should NOT use a &#8220;case&#8221; statement in an OOP language.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders Isaksson</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1678</link>
		<dc:creator>Anders Isaksson</dc:creator>
		<pubDate>Mon, 09 Nov 2009 14:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1678</guid>
		<description>I agree that it&#039;s time to expand the capabilities of &#039;case&#039;. Go for it!

The &#039;case with strings&#039; has been discussed many times on the Borland newsgroups. I have used a sorted TStringList with good effect, although you really need an enumeration for the case labels too, to be able to read the program.

http://www.google.com/url?url=http://groups.google.se/g/c307fefb/t/d186682bbe6cbe71/d/58d39ea2df36b2f8%3Fhl%3Dsv%26ie%3DUTF-8%26q%3Ddelphi%2Bcase%2Bstrings%2Bauthor:isaksson%2358d39ea2df36b2f8&amp;ei=4Cf4Sr_QGoiqQJuN_Es&amp;sa=t&amp;ct=res&amp;cd=1&amp;source=groups&amp;usg=AFQjCNEFH_2smm4So-5ftjXWFusQxRylHQ

or

http://tinyurl.com/yz7qz95</description>
		<content:encoded><![CDATA[<p>I agree that it&#8217;s time to expand the capabilities of &#8216;case&#8217;. Go for it!</p>
<p>The &#8216;case with strings&#8217; has been discussed many times on the Borland newsgroups. I have used a sorted TStringList with good effect, although you really need an enumeration for the case labels too, to be able to read the program.</p>
<p><a href="http://www.google.com/url?url=http://groups.google.se/g/c307fefb/t/d186682bbe6cbe71/d/58d39ea2df36b2f8%3Fhl%3Dsv%26ie%3DUTF-8%26q%3Ddelphi%2Bcase%2Bstrings%2Bauthor:isaksson%2358d39ea2df36b2f8&amp;ei=4Cf4Sr_QGoiqQJuN_Es&amp;sa=t&amp;ct=res&amp;cd=1&amp;source=groups&amp;usg=AFQjCNEFH_2smm4So-5ftjXWFusQxRylHQ" rel="nofollow">http://www.google.com/url?url=http://groups.google.se/g/c307fefb/t/d186682bbe6cbe71/d/58d39ea2df36b2f8%3Fhl%3Dsv%26ie%3DUTF-8%26q%3Ddelphi%2Bcase%2Bstrings%2Bauthor:isaksson%2358d39ea2df36b2f8&amp;ei=4Cf4Sr_QGoiqQJuN_Es&amp;sa=t&amp;ct=res&amp;cd=1&amp;source=groups&amp;usg=AFQjCNEFH_2smm4So-5ftjXWFusQxRylHQ</a></p>
<p>or</p>
<p><a href="http://tinyurl.com/yz7qz95" rel="nofollow">http://tinyurl.com/yz7qz95</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Knopfli</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1677</link>
		<dc:creator>Ken Knopfli</dc:creator>
		<pubDate>Mon, 09 Nov 2009 09:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1677</guid>
		<description>Ah, yes. Mary Travers. May she rest in peace.</description>
		<content:encoded><![CDATA[<p>Ah, yes. Mary Travers. May she rest in peace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Ishenin</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1676</link>
		<dc:creator>Paul Ishenin</dc:creator>
		<pubDate>Mon, 09 Nov 2009 01:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1676</guid>
		<description>You can use string case in FreePascal now.</description>
		<content:encoded><![CDATA[<p>You can use string case in FreePascal now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1674</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1674</guid>
		<description>Since string supports the &#039;=&#039; operator, your apostles are in. :-)</description>
		<content:encoded><![CDATA[<p>Since string supports the &#8216;=&#8217; operator, your apostles are in. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1673</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1673</guid>
		<description>&lt;em&gt;Making us programmers insane!&lt;/em&gt;

Hmmm.... so in &lt;em&gt;this&lt;/em&gt; way one can explain what&#039;s happening in the .public.non-technical...</description>
		<content:encoded><![CDATA[<p><em>Making us programmers insane!</em></p>
<p>Hmmm&#8230;. so in <em>this</em> way one can explain what&#8217;s happening in the .public.non-technical&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1672</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1672</guid>
		<description>Hmmm.... are you sure??? ::g::

I think that&#039;s the &lt;strong&gt;other way around&lt;/strong&gt;: Delphi is (almost) the single language which &lt;strong&gt;doesn&#039;t&lt;/strong&gt; have case with strings!
And, yes, (gasp)!</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230;. are you sure??? ::g::</p>
<p>I think that&#8217;s the <strong>other way around</strong>: Delphi is (almost) the single language which <strong>doesn&#8217;t</strong> have case with strings!<br />
And, yes, (gasp)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1671</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1671</guid>
		<description>Sure. Together with the poll&#039;s results, I&#039;ll put also the link.</description>
		<content:encoded><![CDATA[<p>Sure. Together with the poll&#8217;s results, I&#8217;ll put also the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1670</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1670</guid>
		<description>&lt;em&gt;&quot;Strings would be slow;&quot;&lt;/em&gt;
Not exactly. Will be faster compared with what we have now. (they can have sorted lists, hashes etc. - all generated at compile time) to optimize the search speed at RTM.</description>
		<content:encoded><![CDATA[<p><em>&#8220;Strings would be slow;&#8221;</em><br />
Not exactly. Will be faster compared with what we have now. (they can have sorted lists, hashes etc. &#8211; all generated at compile time) to optimize the search speed at RTM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1669</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1669</guid>
		<description>Yeah, knew it. Anyway, thanks for the link. It is one of the best workarounds given the actual situation. But it lacks of flexibility and readability &lt;em&gt;compared with an official solution of course&lt;/em&gt; especially if the case list contains enough code to spawn more than one screen (yes, it happens sometimes). FTR, is what we use in our programs. Also, your approach can be extended using generics. Basically you can have a generic function &lt;code&gt;IndexOf&lt;/code&gt; which will scans the array of the given type and returns the index of the sought element.</description>
		<content:encoded><![CDATA[<p>Yeah, knew it. Anyway, thanks for the link. It is one of the best workarounds given the actual situation. But it lacks of flexibility and readability <em>compared with an official solution of course</em> especially if the case list contains enough code to spawn more than one screen (yes, it happens sometimes). FTR, is what we use in our programs. Also, your approach can be extended using generics. Basically you can have a generic function <code>IndexOf</code> which will scans the array of the given type and returns the index of the sought element.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1668</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1668</guid>
		<description>&lt;em&gt;&quot;There was a workaround for this but it allowed only case on strings.&quot;&lt;/em&gt;
In fact there were two or tree. But all of these had drawbacks (naturally). The closest to perfection was (perhaps) Andreas Hausladen&#039;s one which required a preprocessor.

&lt;em&gt;&quot;Just let them do this damn 64 bit compiler and cros paltform thing…;)&quot;&lt;/em&gt;

...hehehe...</description>
		<content:encoded><![CDATA[<p><em>&#8220;There was a workaround for this but it allowed only case on strings.&#8221;</em><br />
In fact there were two or tree. But all of these had drawbacks (naturally). The closest to perfection was (perhaps) Andreas Hausladen&#8217;s one which required a preprocessor.</p>
<p><em>&#8220;Just let them do this damn 64 bit compiler and cros paltform thing…;)&#8221;</em></p>
<p>&#8230;hehehe&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1667</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1667</guid>
		<description>...but yes, the #1 is to have clean code. After this, if they can optimize it, so far so good.</description>
		<content:encoded><![CDATA[<p>&#8230;but yes, the #1 is to have clean code. After this, if they can optimize it, so far so good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wings of Wind</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1666</link>
		<dc:creator>Wings of Wind</dc:creator>
		<pubDate>Sat, 07 Nov 2009 11:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1666</guid>
		<description>Yes, depending on how the &lt;code&gt;case&lt;/code&gt; will look like there can be applied different optimizations: hashes, sorted lookup lists or the bare-bone fast implementation as is today.</description>
		<content:encoded><![CDATA[<p>Yes, depending on how the <code>case</code> will look like there can be applied different optimizations: hashes, sorted lookup lists or the bare-bone fast implementation as is today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete Goodwin</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1665</link>
		<dc:creator>Pete Goodwin</dc:creator>
		<pubDate>Sat, 07 Nov 2009 08:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1665</guid>
		<description>c# has case with (gasp) strings!</description>
		<content:encoded><![CDATA[<p>c# has case with (gasp) strings!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John G</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1664</link>
		<dc:creator>John G</dc:creator>
		<pubDate>Sat, 07 Nov 2009 06:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1664</guid>
		<description>@ Is this so hard to enhance ?

I think it is against it&#039;s intended purpose:

&lt;b&gt;Making us programmers insane!&lt;/b&gt;

;)</description>
		<content:encoded><![CDATA[<p>@ Is this so hard to enhance ?</p>
<p>I think it is against it&#8217;s intended purpose:</p>
<p><b>Making us programmers insane!</b></p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis Kessler</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1663</link>
		<dc:creator>Louis Kessler</dc:creator>
		<pubDate>Fri, 06 Nov 2009 23:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1663</guid>
		<description>I agree. Case should work for everything.

Then technically, as others have commented, it can replace IF-THEN-ELSE IF-...</description>
		<content:encoded><![CDATA[<p>I agree. Case should work for everything.</p>
<p>Then technically, as others have commented, it can replace IF-THEN-ELSE IF-&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xepol</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1662</link>
		<dc:creator>Xepol</dc:creator>
		<pubDate>Fri, 06 Nov 2009 19:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1662</guid>
		<description>Makes sense, register a QC item.</description>
		<content:encoded><![CDATA[<p>Makes sense, register a QC item.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marshall Fryman</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1661</link>
		<dc:creator>Marshall Fryman</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1661</guid>
		<description>Zarko and I both talked about case with string and some of the performance issues involved. You can read Zarko&#039;s implementation &lt;a href=&quot;http://delphi.about.com/cs/adptips2002/a/bltip0202.htm&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and several variations and performance numbers &lt;a href=&quot;http://ruminatedrumblings.blogspot.com/2008/03/delphi-case-with-strings.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Zarko and I both talked about case with string and some of the performance issues involved. You can read Zarko&#8217;s implementation <a href="http://delphi.about.com/cs/adptips2002/a/bltip0202.htm" rel="nofollow">here</a> and several variations and performance numbers <a href="http://ruminatedrumblings.blogspot.com/2008/03/delphi-case-with-strings.html" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mason Wheeler</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1660</link>
		<dc:creator>Mason Wheeler</dc:creator>
		<pubDate>Fri, 06 Nov 2009 17:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1660</guid>
		<description>What about Mary?</description>
		<content:encoded><![CDATA[<p>What about Mary?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitrij</title>
		<link>http://windwings.wordpress.com/2009/11/06/the-anti-case-campaign/comment-page-1/#comment-1659</link>
		<dc:creator>Dimitrij</dc:creator>
		<pubDate>Fri, 06 Nov 2009 14:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://wings-of-wind.com/?p=511#comment-1659</guid>
		<description>There was a workaround for this but it allowed only case on strings. Don&#039;t remember now where I saw it, wasn&#039;t it on the Andreas Hausladen page?
Anyway, in my oppinion it is another thing that everyone wants but how much people actually will be using it?

Do you really need a case on a class or on an instance of object? 

For me it is quite sufficient to make 3 if&#039;s depending on an object type. I&#039;ve never needed any more in my practice.

Just let them do this damn 64 bit compiler and cros paltform thing...;)</description>
		<content:encoded><![CDATA[<p>There was a workaround for this but it allowed only case on strings. Don&#8217;t remember now where I saw it, wasn&#8217;t it on the Andreas Hausladen page?<br />
Anyway, in my oppinion it is another thing that everyone wants but how much people actually will be using it?</p>
<p>Do you really need a case on a class or on an instance of object? </p>
<p>For me it is quite sufficient to make 3 if&#8217;s depending on an object type. I&#8217;ve never needed any more in my practice.</p>
<p>Just let them do this damn 64 bit compiler and cros paltform thing&#8230;;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
