<?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: ColdFusion Array : pass by reference or Value.</title>
	<atom:link href="http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/</link>
	<description>My Views on ColdFusion, Java and related technologies</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:41:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-152</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 29 Dec 2007 09:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-152</guid>
		<description>thanks for posting this. i just stumbled over this &quot;feature&quot; and was about ready to throw my laptop out the window... ;)</description>
		<content:encoded><![CDATA[<p>thanks for posting this. i just stumbled over this &#8220;feature&#8221; and was about ready to throw my laptop out the window&#8230; <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-151</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 12 Feb 2007 08:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-151</guid>
		<description>Hope to see a CALLBY argument in the next CF version:&lt;br/&gt;&lt;CFARGUMENT CALLBY=&quot;value&#124;reference&#124;default&quot; ...&gt;&lt;br/&gt;;-)</description>
		<content:encoded><![CDATA[<p>Hope to see a CALLBY argument in the next CF version:<br />&lt;CFARGUMENT CALLBY=&#8221;value|reference|default&#8221; &#8230;&gt;<br /> <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-150</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Thu, 08 Feb 2007 13:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-150</guid>
		<description>Hey Ben.. you didn&#039;t. I am sorry if I  sounded that way :)</description>
		<content:encoded><![CDATA[<p>Hey Ben.. you didn&#8217;t. I am sorry if I  sounded that way <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-149</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Thu, 08 Feb 2007 13:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-149</guid>
		<description>Word up, I didn&#039;t mean to come off sounding attacking. I was just clarifying that the *almost* I think only is ArrayResize(). I think the initialization technique you just commented on is a great idea. I didn&#039;t realize that you could init with a size. Thanks for the hot tip!</description>
		<content:encoded><![CDATA[<p>Word up, I didn&#8217;t mean to come off sounding attacking. I was just clarifying that the *almost* I think only is ArrayResize(). I think the initialization technique you just commented on is a great idea. I didn&#8217;t realize that you could init with a size. Thanks for the hot tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-148</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Wed, 07 Feb 2007 09:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-148</guid>
		<description>Most of the time, you would call resize pretty much soon after creating the array when you know that your array is going to store this many element. You can do the same thing for the ArrayList that you created. &lt;br /&gt;So you can use&lt;br /&gt;&lt;br /&gt;&lt;cfset myarr = CreateObject(&quot;java&quot;, &quot;java.util.ArrayList&quot;).init(1000)&gt;&lt;br /&gt;&lt;cfset myarr.addAll(x)&gt;&lt;br /&gt;&lt;cfset x = myarr&gt;</description>
		<content:encoded><![CDATA[<p>Most of the time, you would call resize pretty much soon after creating the array when you know that your array is going to store this many element. You can do the same thing for the ArrayList that you created. <br />So you can use</p>
<p>&lt;cfset myarr = CreateObject(&#8221;java&#8221;, &#8220;java.util.ArrayList&#8221;).init(1000)&gt;<br />&lt;cfset myarr.addAll(x)&gt;<br />&lt;cfset x = myarr&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-147</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Wed, 07 Feb 2007 07:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-147</guid>
		<description>That is why I said **almost** all and not ALL.</description>
		<content:encoded><![CDATA[<p>That is why I said **almost** all and not ALL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/02/coldfusion-array-pass-by-reference-or-value/comment-page-1/#comment-146</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Wed, 07 Feb 2007 03:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/02/06/coldfusion-array-pass-by-reference-or-value/#comment-146</guid>
		<description>Rupesh, I agree. Passing the array by value does seem like a limitation. I like the stuff you have above... but be careful, if memory serves, this works on 99% of things, but bombs for ArrayResize(). But other than that, this is good solution.</description>
		<content:encoded><![CDATA[<p>Rupesh, I agree. Passing the array by value does seem like a limitation. I like the stuff you have above&#8230; but be careful, if memory serves, this works on 99% of things, but bombs for ArrayResize(). But other than that, this is good solution.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

