Gareth - which value do you get? Seems that cf7 is passing arrays by value, rather than by reference...
But that would seem very odd to me.. Hmnnn Mark On 6/1/05, Gareth Edwards <[EMAIL PROTECTED]> 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> > -- E: [EMAIL PROTECTED] W: www.compoundtheory.com ICQ: 3094740 --- 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/
