Steve, just a quick info here. If you have every variable in the variables scope prefixed with "variables." it is actually slower (factor 2 at least) than if you address it without the "variables." notation. This is valid for Adobe's CFML implementation. In Railo it's indifferent. Whereas inside CFC's the "variables." notation is faster than writing it without the "variables.".
My personal recommendation is: Scope everything except the variables scope. And for readability reasons scope queries as well! So do it like this: <cfoutput query="susi"> #susi.name#<br> </cfoutput> Greetings from Switzerland Gert Franz Railo Technologies Professional Open Source skype: gert.franz g...@getrailo.com www.getrailo.ch -----Ursprüngliche Nachricht----- Von: Cutter (CFRelated) [mailto:cold.fus...@cutterscrossing.com] Gesendet: Montag, 15. Juni 2009 16:28 An: cf-talk Betreff: Re: scoping #foo.goo# is acceptable. I, personally, explicitly scope every variable: <cfset VARIABLES.foo = APPLICATION.foo.moo() /> #VARIABLES.foo.goo# We also have an extremely high traffic, high utilization application, so explicitly scoping every var helps us keep memory in check (plus makes maintaining the code easier). Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _____________________________ http://blog.cutterscrossing.com On 6/15/2009 9:22 AM, Chad Gray wrote: > Say you defined a local variable like this on a CFM page and it returns a query object: > > <cfset foo = application.foo.moo()> > > Should I write out my variables like this when I out the query object? > > #variables.foo.goo# > > Or is this sufficient? > #foo.goo# > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323510 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4