Jochem van Dieten wrote: > There are some incompatibilities that are not detected by the code > analyser such as scope resolution precedence. For example, two weeks > ago I encountered the following code: > > <cffunction name="GenerateIt"> > <cfargument name="LWB" type="string" required="yes"> > > <cfset LWB = Request.stCache.blah> > <cfset LWB = ReplaceNoCase(LWB, "x", Arguments.LWB, "ALL")> > ... > <cfreturn x> > </cffunction> > > In CF 6.x "LWB" in the function body refers to a local var, in CF 7.x > LWB refers to Arguments.LWB. Oeps. > eek... Now I know why I always always always scope my variables :D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5969 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.10 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
