On 5/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I was shocked to see my test function work. I just can't > believe that Adobe would even expose those variables without > a scope prefix. I know that it does a top-down search > through the myriad of scopes, but this just seems flat out > dangerous.
Read the docs: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000914.htm Copied here for the lazy people :) Evaluating unscoped variables If you use a variable name without a scope prefix, ColdFusion checks the scopes in the following order to find the variable: 1. Function local (UDFs and CFCs only) 2. Arguments 3. Variables (local scope) 4. CGI 5. Cffile 6. URL 7. Form 8. Cookie 9. Client -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278775 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

