I was just reading the CF7 Migration doc
http://download.macromedia.com/pub/documentation/en/coldfusion/mx7/cfmx7_migrating.pdf

and noticed this point on p27:
'CFCs can now return arrays of CFC instances.'

Possibly the reason you can now return arrays by-value from functions ? Although you would think that returning an array of cfc instaces would be returning an array of references anyways...

Pat




Gareth Edwards wrote:
Question.

I have an example of some code, (that I didnt write) that I have found a 
problem with in Coldfusion 7.

As far as I know it works in CF 6.. but not in CF 7.

Can anyone tell me why in CF6 I get an array with two values and in CF7 I get 
an array with one.?

It seems that the code is incorrect and shouldnt be used? can anyone else fill 
me in?

<cfset y = ArrayNew(1)>
<cfset y[1] = 3>
<cfset gg(y)>
<cfdump var="#y#">
<cfabort>

<cffunction name="gg" returntype="boolean" access="public">
        <cfargument name="t" type="array" required="yes">
        <cfset arguments.t[2] = now()>
        <cfreturn true>
</cffunction>
<cfabort>





---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to