Ok, but I think now we're talking about years of carpal tunnel syndrome...
just kidding.

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:41 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Unexpected CFC behaviour, please explain!


But all the problems in your examples relate non-scoped variables, whether
they are actually in the ARGUMENTS, VARIABLES or unnamed scopes.  Just scope
them all and you'll be set.

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Brad Howerter
> Sent: Tuesday, September 09, 2003 1:40 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [CFCDev] Unexpected CFC behaviour, please explain!
>
>
> That's not germane because the problem occurs even if there are
> no variables
> in the variables scope of the same name.  The original example
> doesn't touch
> the variables scope at all and there is still a problem.  You could work
> around it by always fully specifying ARGUMENT variable names (or, by never
> specifying the argument scope).
>
>
>       <cffunction name="test">
>               <cfargument name="abc" type="string" default="foo">
>               <cfoutput>abc = #abc#, arguments.abc =
> #arguments.abc#<br></cfoutput> <!--- this displays abc = foo,
> arguments.abc
> = foo --->
>               <cfset arguments.abc = '123'> <!--- this sets arguments.abc,
> but not abc in the unnamed scope --->
>               <cfoutput>abc = #abc#, arguments.abc =
> #arguments.abc#</cfoutput> <!--- this displays abc = foo, arguments.abc =
> 123 --->
>       </cffunction>
>
>       <cffunction name="test2">
>               <cfargument name="abc" type="string" default="foo">
>               <cfoutput>abc = #abc#, arguments.abc =
> #arguments.abc#<br></cfoutput> <!--- this displays abc = foo,
> arguments.abc
> = foo --->
>               <cfset abc = '123'> <!--- this sets abc in the unnamed scope
> --->
>               <cfoutput>abc = #abc#, arguments.abc =
> #arguments.abc#</cfoutput> <!--- this displays abc = 123, arguments.abc =
> foo --->
>       </cffunction>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/2003

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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


***
The information in this email is confidential and intended solely for the individual 
or entity to whom it is addressed. If you have received this email in error please 
notify the sender by return e-mail, delete this email, and refrain from any disclosure 
or action based on the information.
****


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to