No, I am NOT wrapping a structure around an array. I am making a pass-by-reference VERSION of an array.
If you wrap something in a structure. Then you need to grab it out of a structure when referencing it: <cfset objStructure[ "array" ] = ArrayNew( 1 )/> <!--- Update it. ---> <cfset ArrayAppend( objStructure[ "array" ], "test" ) /> See, if you go the structure route, you have to always reference via the structure. That is LAME. I am talking about altering the way arrays "seem" to function. Pass the array ITSELF by reference. No structures, no nesting, no nothing... Pure sexyness. ....................... Ben Nadel www.bennadel.com Certified Advanced ColdFusion Developer Need Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 8:39 AM To: CF-Talk Subject: RE: Passing ColdFusion Arrays By Reference Hasn't this always been possible? Didn't you wrap a structure around the array? -----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: 19 September 2006 13:34 To: CF-Talk Subject: Passing ColdFusion Arrays By Reference Hey all, I was fooling around with some code last night and found a way to pass ColdFusion arrays by reference, and NOT by value. I am just very excited about this and though maybe you all would like to know about it to. >From some prelim testing, it looks like passing by reference has HUGE performance gains and is just all around wicked sweet! http://www.bennadel.com/blog/275-Passing-Arrays-By-Reference-In-ColdFusion-S WEEET.htm ......................... Ben Nadel www.bennadel.com Certified Advanced ColdFusion Developer Need Help? www.bennadel.com/ask-ben/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253498 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4