Ok, so a var scoped variable is local to the function. Non-var scoped variables, and variable prefixed variables exist in the component?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nathan Dintenfass Sent: Monday, October 06, 2003 11:58 AM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] Variable referencing in CFCs The issue is that there needed to be some scope for instance data, and the Variables scope was (unfortunately, it could be argued) the obvious choice for the very reason you are talking about -- it's consistent with the rest of CFML. Since there needs to be some way to differentiate between local variables and instance variables we have the current situation. It might have made sense to create a new scope for local variables, but the Variables scope would not have worked because of the way it works in all other CFML settings (for instance, you can make UDFs on any CFML page that access the "Variables" scope -- and it will always be a non-local [to the function] variable). In my example of using "local" I used the var prefix, so no -- you would not need to worry about it polluting any other variables in your CFC since it would be local to the method and created each time the method is called. ---------------------------------------------------------- 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]
