> > 5. Should be primarily used for "constants".
>
> I would argue that constants should be placed within the Request scope,
but
> it can come in handy for other things as well.


What happens within a custom cfml tag if the tag inadvertantly refers to or
redefines a variable defined in the request scope?  For example, say, in
application.cfm

<cfset request.datasource = "SomeDSN">


Then, within a cfml tag, you have:

<cfset datasource = "AnotherDSN">

<cfquery name="blah" datasource="#datasource#">
....
</cfquery>


Will the cfml tag have overwritten the request scope variable?

Jim


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to