Since you var scoped the query name, the variable "q" becomes local to the
method.  If you were to remove the var scoping, it would leak into the
variables scope, and (under load) would have caused strange behavior, and
would make it very hard to track down the source of the bug.  This is the
reason so many of us on this list preach var scoping.

HTH,
Rich Kroll


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301014
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to