<?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 for DelphiTools.info</title>
	<atom:link href="http://delphitools.info/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://delphitools.info</link>
	<description>SamplingProfiler, DWS and other Delphi tools</description>
	<lastBuildDate>Fri, 03 Feb 2012 09:15:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Meanwhile, in the DWScript SVN&#8230; by A. Bouchez</title>
		<link>http://delphitools.info/2012/02/02/meanwhile-in-the-dwscript-svn/comment-page-1/#comment-2131</link>
		<dc:creator>A. Bouchez</dc:creator>
		<pubDate>Fri, 03 Feb 2012 09:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1611#comment-2131</guid>
		<description>I was in need for sar (and true shr) in JavaScript CodeGen for coding CRC32 and SHA256 in DWS. Thanks for your fast and efficient support!
Some new features are very welcome to me: for instance, I use very often “array [TEnumeratedType] of” static arrays in my code.
So much improvements! Thanks!</description>
		<content:encoded><![CDATA[<p>I was in need for sar (and true shr) in JavaScript CodeGen for coding CRC32 and SHA256 in DWS. Thanks for your fast and efficient support!<br />
Some new features are very welcome to me: for instance, I use very often “array [TEnumeratedType] of” static arrays in my code.<br />
So much improvements! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by EMB</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2128</link>
		<dc:creator>EMB</dc:creator>
		<pubDate>Tue, 31 Jan 2012 12:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2128</guid>
		<description>François said exactly what I think.</description>
		<content:encoded><![CDATA[<p>François said exactly what I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by Simon</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2127</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 30 Jan 2012 12:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2127</guid>
		<description>+1 for directive required
-1 for without directive

I&#039;ve just clicked the wrong one.</description>
		<content:encoded><![CDATA[<p>+1 for directive required<br />
-1 for without directive</p>
<p>I&#8217;ve just clicked the wrong one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by dennis</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2126</link>
		<dc:creator>dennis</dc:creator>
		<pubDate>Sat, 28 Jan 2012 18:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2126</guid>
		<description>@stefan: sure, but dws might use it for data types as well...</description>
		<content:encoded><![CDATA[<p>@stefan: sure, but dws might use it for data types as well&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by Rudy Velthuis</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2125</link>
		<dc:creator>Rudy Velthuis</dc:creator>
		<pubDate>Fri, 27 Jan 2012 16:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2125</guid>
		<description>I doubt it is possible without the explicit declaration. If a (non-method) function is declared in a different unit, it usually hides any identifiers declared &quot;earlier&quot;. Only with overload, they can exist side by side.

The same for methods: a method with the same name, but declared in a derivate class, will hide the method in the original class. Only with an explicit overload directive, they can co-exist in the same class.

The explicit directive is, IMO, also a lot clearer and beats what e.g. C++ users have to do to achieve the same (&quot;using&quot;).</description>
		<content:encoded><![CDATA[<p>I doubt it is possible without the explicit declaration. If a (non-method) function is declared in a different unit, it usually hides any identifiers declared &#8220;earlier&#8221;. Only with overload, they can exist side by side.</p>
<p>The same for methods: a method with the same name, but declared in a derivate class, will hide the method in the original class. Only with an explicit overload directive, they can co-exist in the same class.</p>
<p>The explicit directive is, IMO, also a lot clearer and beats what e.g. C++ users have to do to achieve the same (&#8220;using&#8221;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by Stefan Glienke</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2124</link>
		<dc:creator>Stefan Glienke</dc:creator>
		<pubDate>Fri, 27 Jan 2012 07:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2124</guid>
		<description>&lt;a href=&quot;#comment-2122&quot; rel=&quot;nofollow&quot;&gt;@dennis&lt;/a&gt; 
You know that as is only available for class types, right?</description>
		<content:encoded><![CDATA[<p><a href="#comment-2122" rel="nofollow">@dennis</a><br />
You know that as is only available for class types, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by François</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2123</link>
		<dc:creator>François</dc:creator>
		<pubDate>Thu, 26 Jan 2012 22:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2123</guid>
		<description>Let&#039;s see the choices:
- if you like option 1 (shouldn&#039;t be allowed), you can live well with option 2 (like it is today) and never type overload. The compiler will yell at you if you reuse an existing name for a routine and you&#039;ll have to rename your routine. Option 3 will be a nightmare for you...
- if you like option 2 (explicit directive, my choice), option 1 removes unnecessarily (see above) a feature that can be useful (if used right) and breaks compatibility with existing code (baaad). Option 3 breaks introduces (only for code typing laziness) ambiguity and unreadability even worse than the infamous &quot;with&quot;.
- if you like overloading so much that you choose option 3 (implicit), option 1 would prevent you from even doing it, while option 2 allows you to do it as much as you want provided you can do 10 extra keystrokes.

Bottom line: option2 is the only one that makes sense because it is a compromise that works more or less for everybody. CQFD!</description>
		<content:encoded><![CDATA[<p>Let&#8217;s see the choices:<br />
- if you like option 1 (shouldn&#8217;t be allowed), you can live well with option 2 (like it is today) and never type overload. The compiler will yell at you if you reuse an existing name for a routine and you&#8217;ll have to rename your routine. Option 3 will be a nightmare for you&#8230;<br />
- if you like option 2 (explicit directive, my choice), option 1 removes unnecessarily (see above) a feature that can be useful (if used right) and breaks compatibility with existing code (baaad). Option 3 breaks introduces (only for code typing laziness) ambiguity and unreadability even worse than the infamous &#8220;with&#8221;.<br />
- if you like overloading so much that you choose option 3 (implicit), option 1 would prevent you from even doing it, while option 2 allows you to do it as much as you want provided you can do 10 extra keystrokes.</p>
<p>Bottom line: option2 is the only one that makes sense because it is a compromise that works more or less for everybody. CQFD!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by dennis</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2122</link>
		<dc:creator>dennis</dc:creator>
		<pubDate>Thu, 26 Jan 2012 20:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2122</guid>
		<description>@Stefan
-&gt; compiler error. if it&#039;s not 100% clear which function should be used then throw an error.
give an example, I can&#039;t think of any, could be solves with the &quot;as&quot; statement:

MyResult := MyFunc(bla,bla) as TMyResult;</description>
		<content:encoded><![CDATA[<p>@Stefan<br />
-&gt; compiler error. if it&#8217;s not 100% clear which function should be used then throw an error.<br />
give an example, I can&#8217;t think of any, could be solves with the &#8220;as&#8221; statement:</p>
<p>MyResult := MyFunc(bla,bla) as TMyResult;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by Simon J Stuart</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2121</link>
		<dc:creator>Simon J Stuart</dc:creator>
		<pubDate>Thu, 26 Jan 2012 19:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2121</guid>
		<description>Overloads are an important part of Delphi.... so of course they&#039;re often heavily abused.

I use overloads quite often, where an operation can support multiple Types (such as Method Types &quot;of Object&quot; and Method Types NOT &quot;of Object&quot;).

I think implicit overloading would be dangerous... as developers would end up inadvertantly overloading methods, and it would lead to quite a lot of confusion.</description>
		<content:encoded><![CDATA[<p>Overloads are an important part of Delphi&#8230;. so of course they&#8217;re often heavily abused.</p>
<p>I use overloads quite often, where an operation can support multiple Types (such as Method Types &#8220;of Object&#8221; and Method Types NOT &#8220;of Object&#8221;).</p>
<p>I think implicit overloading would be dangerous&#8230; as developers would end up inadvertantly overloading methods, and it would lead to quite a lot of confusion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What do you think of function overloads? by Fabricio</title>
		<link>http://delphitools.info/2012/01/26/what-do-you-think-of-functions-overloads/comment-page-1/#comment-2120</link>
		<dc:creator>Fabricio</dc:creator>
		<pubDate>Thu, 26 Jan 2012 18:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=1602#comment-2120</guid>
		<description>Leave it that way. If you are overloading, you have to say that using the directive.</description>
		<content:encoded><![CDATA[<p>Leave it that way. If you are overloading, you have to say that using the directive.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.delphitools.info/comments/feed/ ) in 0.85203 seconds, on Feb 4th, 2012 at 1:27 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 1:27 pm UTC -->
