nope. copied in entirety, no pointers. however, if you have a struct in the array:
session.foo = arraynew(3); session.foo[1][1][1] = 0; session.foo[1][1][2] = structnew(); session.foo[1][1][2].bar = "apple"; request.foo = session.foo; request.foo[1][1][1] = 1; request.foo[1][1][2].bar = "banana"; </cfscript> <cfdump var="#session.foo#"> the array value session.foo[1][1][1] is still 0 despite request.foo[1][1][1] being 1 but the struct is still passed by reference, so session.foo[1][1][1].bar = "banana" which I guess is where it gets complicated. my advice is just to use duplicate() :) > -----Original Message----- > From: Robertson-Ravo, Neil (REC) > [mailto:Neil.Robertson-Ravo@;csd.reedexpo.com] > Sent: 24 October 2002 11:31 > To: '[EMAIL PROTECTED]' > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > jeez, you would expect it to be? how about 3 dimensions? > > -----Original Message----- > From: Rich Wild [mailto:r.wild@;e-mango.com] > Sent: 24 October 2002 11:15 > To: '[EMAIL PROTECTED]' > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > apparently not: > > session.foo = arraynew(2); > session.foo[1][1] = 0; > request.foo = session.foo; > request.foo[1][1] = 1; > > <cfdump var="#session.foo#"> > > > -----Original Message----- > > From: Robertson-Ravo, Neil (REC) > > [mailto:Neil.Robertson-Ravo@;csd.reedexpo.com] > > Sent: 24 October 2002 11:27 > > To: '[EMAIL PROTECTED]' > > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > > > > I reckon a multidimensional array must be seen as complex.?! > > > > -----Original Message----- > > From: Russell Brown [mailto:russell.brown@;Freeserve.com] > > Sent: 24 October 2002 11:17 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > > > > They are complex. I guess its the way ColdFusion handles > > them. I don't know > > how it stands in CFMX but in the c++ coldfusions of yore > its clearly a > > throwback to the way c++ handles memory. That is why I would > > guess that > > OBJECTS and queries are also moved, copied , passed by > > reference ( pointer ) > > than by value ( a true copy ). Don't ask me what happens to > > that array that > > is three levels done in a structure of structures!! > > > > Perhaps Lucas or another MacroMeanie can clear this up if > > they are on list. > > > > Russell > > > > -----Original Message----- > > From: Robertson-Ravo, Neil (REC) > > [mailto:Neil.Robertson-Ravo@;csd.reedexpo.com] > > Sent: Thu 24/10/2002 11:06 > > To: '[EMAIL PROTECTED]' > > Cc: > > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > > > > > > really, so Arrays will be fine > > also?........hmmmm....... I thought > > they were > > complex variables? > > > > > > > > -----Original Message----- > > From: Russell Brown [mailto:russell.brown@;Freeserve.com] > > Sent: 24 October 2002 11:06 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > > > > >So it is clear : using <cfset to copy session to > > request is AOK as > > long as > > >the value is a simple variable but NOT OK if its a > > complex variable > > (array, > > >structure, wddx....)? > > > > I amnot certain about Queries or com/java objects but I > > know you are > > safe > > with Arrays and Wddx. Coldfusion copies arrays by value, wddx is > > just a > > string (therefore a simple value) . Structs are copied > > and passed by > > reference . Queries anyone ? Com / Java Objects ? (I'd > > love to know, > > must > > languages include such things in the docs mind you!) > > > > Russell > > > > -----Original Message----- > > From: Robertson-Ravo, Neil (REC) > > [mailto:Neil.Robertson-Ravo@;csd.reedexpo.com] > > Sent: Thu 24/10/2002 11:00 > > To: '[EMAIL PROTECTED]' > > Cc: > > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > > > > > > Thanks Guys, > > > > So it is clear : using <cfset to copy session > > to request is > > AOK as > > long as > > the value is a simple variable but NOT OK if > > its a complex > > variable > > (array, > > structure, wddx....)? > > > > Neil > > > > > > > > -----Original Message----- > > From: Robertson-Ravo, Neil (REC) > > [mailto:Neil.Robertson-Ravo@;csd.reedexpo.com] > > Sent: 24 October 2002 10:55 > > To: '[EMAIL PROTECTED]' > > Subject: RE: [ cf-dev ] Pointers / Structure again! > > > > > > no, but if it was indeed a pointer, surely it > > would bomb? > > > > > > > > -----Original Message----- > > From: Stephen Moretti [mailto:stephen@;cfmaster.co.uk] > > Sent: 24 October 2002 10:59 > > To: [EMAIL PROTECTED] > > Subject: Re: [ cf-dev ] Pointers / Structure again! > > > > > > > whoah horsey :) looks like we are all a bit > > vague on this > > issue... > > > > > Points to Rich Wilds previous email. > > > > > > > > I have tried to prove this but it seems that > > it even with > > Full > > Checking > > on, > > > it doesnt bomb out. > > > > > not surprising really, as the checking is on session > > variables not > > request > > variables. > > > > > > > > > > -- > > ** Archive: > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > For human help, e-mail: > > [EMAIL PROTECTED] > > > > -- > > ** Archive: > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > For human help, e-mail: > > [EMAIL PROTECTED] > > > > -- > > ** Archive: > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > For human help, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > -- > > ** Archive: > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
