I've heard that in order for a variable only to exist within a specific
function that you var scope it. I understand that. However, they also say
that you don't reference the var scoped variable with the Variables scope
prefix. And that the variable scope prefix is Global within the CFC and not
just the function.

I understand. But this is different than what is in regular CFML pages. Then
say you have a function with many lines of code and you don't reference your
Variables with the Variables scope, to me this makes the code hard to read.
I have always thought that referencing variables within their scope was the
way to go because 1 CF didn't need to search up the variable scopes and 2,
it was more manageable. So why then wouldn't regular CFML pages and CFCs
work the same way regarding the Variables scope?

What are your thoughts on this?

----------------------------------------------------------
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