Cool, So we established that there is no need to destroy variables. Thus "Variables > To destroy or not to destroy?" = not to destroy.
Cheers guys.. You guys really know the guts of CF, I hardly have any idea of what is really going on behind the scenes. Taco Fleur Blog http://www.tacofleur.com/index/blog/ Methodology http://www.tacofleur.com/index/methodology/ Tell me and I will forget Show me and I will remember Teach me and I will learn > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Geoff Bowers > Sent: Tuesday, 9 March 2004 4:36 PM > To: CFAussie Mailing List > Subject: [cfaussie] Re: Variables > To destroy or not to destroy? > > > Taco Fleur wrote: > > Correct me if I am wrong (maybe I just don't get it) but all scopes > > are structures, correct? Thus VARIABLES is a structure, whether the > > function is called structDELETE and whether it just removes the > > element from the structure, the end result is that the variable is > > destroyed. > > Attempting to delete things out of VARIABLES scope is all bad. > VARIABLES is a temporary scope that dies with the end of the page > execution. CFMX in any event is going to do its own clean up of > everything that is specific to the page request, including url, form, > variables, request and so on. > > structDelete(), as far as i'm aware, is a very expensive function and > trying to manually cleanup the VARIABLES scope prior to the > end of page > execution is just going to be a complete waste of resources and have > completely the opposite effect to what you're after. > > -- geoff > http://www.daemon.com.au/ > > --- > You are currently subscribed to cfaussie as: > [EMAIL PROTECTED] To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
