On 10/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> <cfset name = "Jason">
> <cfset variables.instance.name ="Gerry">
>
> <cfreturn this.name>  <!--- would return Jason --->
> <cfreturn variables.instance.name>  <!--- would return Gerry --->

I think there is a typo in the above example:

    <cfset name = "Jason">

It should be:

    <cfset this.name = "Jason">

In fact the 'variables' scope (default one for unscoped variables) is
different from the 'this' scope.

Regards.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to