<?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"
	>
<channel>
	<title>Comments on: Implicit Arrays in ColdFusion 8</title>
	<atom:link href="http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8</link>
	<description>The opposite of every great idea is another great idea</description>
	<pubDate>Fri, 21 Nov 2008 15:57:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: trev</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-4031</link>
		<dc:creator>trev</dc:creator>
		<pubDate>Mon, 19 May 2008 17:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-4031</guid>
		<description>thanks simon thought that looked new!! in the interests of cleaner code and my cf8 exam coming up soon I will do it all with cfscript but I think cfscript is a huge barrier for us people who come from a non programming background(cfloops are difficult to get my head around once I start having to add 1's to curly brackets and use for instead of cfif then my brain seems to just switch off!!). 

Thanks again for pointing that out-another thing to learn now!!</description>
		<content:encoded><![CDATA[<p>thanks simon thought that looked new!! in the interests of cleaner code and my cf8 exam coming up soon I will do it all with cfscript but I think cfscript is a huge barrier for us people who come from a non programming background(cfloops are difficult to get my head around once I start having to add 1&#8217;s to curly brackets and use for instead of cfif then my brain seems to just switch off!!). </p>
<p>Thanks again for pointing that out-another thing to learn now!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-4030</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 19 May 2008 14:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-4030</guid>
		<description>The for loop uses the new to ColdFusion 8 javascript-style operators, which are not available in CF7.

You will need to replace the for loop with:

for (i = 1; i lte arrayLen(age); i=i+1)
{
...
}</description>
		<content:encoded><![CDATA[<p>The for loop uses the new to ColdFusion 8 javascript-style operators, which are not available in CF7.</p>
<p>You will need to replace the for loop with:</p>
<p>for (i = 1; i lte arrayLen(age); i=i+1)<br />
{<br />
&#8230;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trev</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-4029</link>
		<dc:creator>trev</dc:creator>
		<pubDate>Mon, 19 May 2008 13:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-4029</guid>
		<description>my code does have the cfscript tags-when posting they were taken off!</description>
		<content:encoded><![CDATA[<p>my code does have the cfscript tags-when posting they were taken off!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trev</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-4028</link>
		<dc:creator>trev</dc:creator>
		<pubDate>Mon, 19 May 2008 12:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-4028</guid>
		<description>Thanks for a great tutorial 
For some reason I get an error on this code saying the cfscript tag needs to be closed.  I can't see why this cut and paste doesn't work, using cfmx7 which at that part of the tutorial is fine I believe! Why do I get that error? 


age = arrayNew(1);
age[1] = 19;
age[2] = 20;
age[3] = 21;
age[4] = 22;
age[5] = 23;
age[6] = 18;
 
sum_age = 0;
 
//loop over the age array adding age together all ages
for (i = 1; i &#60;= arrayLen(age); i++)
{
    sum_age += age[i];
}
 
//calculate the average age
average_age = sum_age / arrayLen(age);
 
writeOutput(average_age); // returns 20.5
</description>
		<content:encoded><![CDATA[<p>Thanks for a great tutorial<br />
For some reason I get an error on this code saying the cfscript tag needs to be closed.  I can&#8217;t see why this cut and paste doesn&#8217;t work, using cfmx7 which at that part of the tutorial is fine I believe! Why do I get that error? </p>
<p>age = arrayNew(1);<br />
age[1] = 19;<br />
age[2] = 20;<br />
age[3] = 21;<br />
age[4] = 22;<br />
age[5] = 23;<br />
age[6] = 18;</p>
<p>sum_age = 0;</p>
<p>//loop over the age array adding age together all ages<br />
for (i = 1; i &lt;= arrayLen(age); i++)<br />
{<br />
    sum_age += age[i];<br />
}</p>
<p>//calculate the average age<br />
average_age = sum_age / arrayLen(age);</p>
<p>writeOutput(average_age); // returns 20.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Boughton</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-3073</link>
		<dc:creator>Peter Boughton</dc:creator>
		<pubDate>Tue, 11 Mar 2008 00:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-3073</guid>
		<description>&#60;cffunction name="Struct" returntype="Struct"&#62;&#60;cfreturn Arguments/&#62;&#60;/cffunction&#62;</description>
		<content:encoded><![CDATA[<p>&lt;cffunction name=&#8221;Struct&#8221; returntype=&#8221;Struct&#8221;&gt;&lt;cfreturn Arguments/&gt;&lt;/cffunction&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Boughton</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-3072</link>
		<dc:creator>Peter Boughton</dc:creator>
		<pubDate>Mon, 10 Mar 2008 23:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-3072</guid>
		<description>I don't like the CF8 syntax for this - just using symbols makes it harder to see at a glance what's what.
I much prefer the &lt;em&gt;explicit&lt;/em&gt; Struct() and Array() functions which Railo has, and which can be created as David showed above ... although there's a much simpler way to write it than all that lc.st stuff...
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t like the CF8 syntax for this - just using symbols makes it harder to see at a glance what&#8217;s what.<br />
I much prefer the <em>explicit</em> Struct() and Array() functions which Railo has, and which can be created as David showed above &#8230; although there&#8217;s a much simpler way to write it than all that lc.st stuff&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-3071</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 07 Mar 2008 15:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-3071</guid>
		<description>Instead of using the for-loop to calculate tha average values in the array, there is a little known function called ArrayAvg() that does it all for you. The function simply takes the name of the array and calculates the average of the values in the array.

Thanks to Iain Turbitt for that suggestion.</description>
		<content:encoded><![CDATA[<p>Instead of using the for-loop to calculate tha average values in the array, there is a little known function called ArrayAvg() that does it all for you. The function simply takes the name of the array and calculates the average of the values in the array.</p>
<p>Thanks to Iain Turbitt for that suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Boyer</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-3068</link>
		<dc:creator>David Boyer</dc:creator>
		<pubDate>Thu, 06 Mar 2008 16:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-3068</guid>
		<description>@Ben,

Well spotted, nested creation that way would be almost as sexy as the pics you sometimes use on your site ;)

Now all I want sorted is named arguments for scoped functions and I'll be a happy chappy</description>
		<content:encoded><![CDATA[<p>@Ben,</p>
<p>Well spotted, nested creation that way would be almost as sexy as the pics you sometimes use on your site <img src='http://www.simonwhatley.co.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now all I want sorted is named arguments for scoped functions and I&#8217;ll be a happy chappy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dav</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-3067</link>
		<dc:creator>Dav</dc:creator>
		<pubDate>Thu, 06 Mar 2008 14:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-3067</guid>
		<description>I'd spotted that too. You also can't directly feed an implicitly created Array or Struct into a function argument, such as
ImageDrawText(myImage, someStr, x, y, {style="bold"});</description>
		<content:encoded><![CDATA[<p>I&#8217;d spotted that too. You also can&#8217;t directly feed an implicitly created Array or Struct into a function argument, such as<br />
ImageDrawText(myImage, someStr, x, y, {style=&#8221;bold&#8221;});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://www.simonwhatley.co.uk/implicit-arrays-in-coldfusion-8#comment-3066</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Thu, 06 Mar 2008 12:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=446#comment-3066</guid>
		<description>Ben Forta announced that nested struct and array notation will *probably* be in the next ColdFusion 8 updater :)

http://www.forta.com/blog/index.cfm/2008/2/29/Implicit-Array-And-Structure-Creation-Revisited</description>
		<content:encoded><![CDATA[<p>Ben Forta announced that nested struct and array notation will *probably* be in the next ColdFusion 8 updater <img src='http://www.simonwhatley.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.forta.com/blog/index.cfm/2008/2/29/Implicit-Array-And-Structure-Creation-Revisited" rel="nofollow">http://www.forta.com/blog/index.cfm/2008/2/29/Implicit-Array-And-Structure-Creation-Revisited</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
