Dave Anderson wrote:
> How would that be dangerous?  Because of potential collision with a variable 
> of the same name in another scope?

Yes.


> Is the order for var name resolution the same within a cffunction as it is 
> elsewhere?  Does the arguments scope not get checked first inside a 
> cffunction?

CF 6 :
    1. Arguments
    2. Variables (local scope)
    3. CGI
    4. URL
    5. Form
    6. Cookie
    7. Client
http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/Variables7.htm#1100240

CF 7:
    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
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000914.htm#1134503

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

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

Reply via email to