<?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: Limitations in Delphi</title>
	<atom:link href="http://temporalcohesion.co.uk/2007/07/23/limitations-in-delphi/feed/" rel="self" type="application/rss+xml" />
	<link>http://temporalcohesion.co.uk/2007/07/23/limitations-in-delphi/</link>
	<description>...trying not to write legacy code, man.</description>
	<lastBuildDate>Mon, 07 Jun 2010 13:48:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew</title>
		<link>http://temporalcohesion.co.uk/2007/07/23/limitations-in-delphi/comment-page-1/#comment-333</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 05 May 2009 14:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://temporalcohesion.co.uk/2007/07/23/limitations-in-delphi/#comment-333</guid>
		<description>The idea was to make people aware of the performance gains when using the case statement with ordinal types instead of strings, for strings one could simply use: 
if SomeString = &#039;one&#039; then
  DoSomethingForOne
else if SomeString = &#039;two&#039; then
  DoSomethingForTwo
...
It&#039;s not that painful but it would be nice to be able to compare strings and just receive a warning about the performance issue, however we could see this implemented in the OpenSource version of Delphi, Lazarus IDE and the FreePascal compiler which seems to have a lot of interesting features including some level of precompiler macros, operator overloading, CrossPlatform support and many more i&#039;m not sure how generics work in FPC right now but they should be supported soon. On the IDE side Delphi still feels better but maybe things will change in the not so distant future.</description>
		<content:encoded><![CDATA[<p>The idea was to make people aware of the performance gains when using the case statement with ordinal types instead of strings, for strings one could simply use:<br />
if SomeString = &#8216;one&#8217; then<br />
  DoSomethingForOne<br />
else if SomeString = &#8216;two&#8217; then<br />
  DoSomethingForTwo<br />
&#8230;<br />
It&#8217;s not that painful but it would be nice to be able to compare strings and just receive a warning about the performance issue, however we could see this implemented in the OpenSource version of Delphi, Lazarus <span class="ubernym uttAbbreviation" onmouseover="domTT_activate(this, event, 'content', 'Integrated Development Environment' );"><abbr class="uttAbbreviation" title="Integrated Development Environment">IDE</abbr></span> and the FreePascal compiler which seems to have a lot of interesting features including some level of precompiler macros, operator overloading, CrossPlatform support and many more i&#8217;m not sure how generics work in FPC right now but they should be supported soon. On the <span class="ubernym uttAbbreviation" onmouseover="domTT_activate(this, event, 'content', 'Integrated Development Environment' );"><abbr class="uttAbbreviation" title="Integrated Development Environment">IDE</abbr></span> side Delphi still feels better but maybe things will change in the not so distant future.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
