I thought that an earlier thread had concluded that best practice was to use
this. public class variables
Best practice is to not have public class variables.
instance. private class variables
That was true of CFMX 6.0 but CFMX 6.1 has 'variables' scope and you should explicitly qualify all of your non-public class variables with 'variables'. Note that these are non-public variables - they are not really private variables (they are more like protected variables in Java). If you need your code to run on 6.0 as well as 6.1, then stick to 'instance'.
var VariableName for private function variables
Yes, although most folks would call them local function variables. They exist only for the execution of that function (and they are created anew with each execution of that function).
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words '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]
