In java if you don't declare the variable inside a Method, it will
assume you want the variable that is particular to the instance values
of the object (and throw an error at compliation if it can't find it).

So yeah - it's pretty normal.

Mark

On Apr 5, 2005 2:24 PM, Dave Watts <[EMAIL PROTECTED]> wrote:
> > Understood, but what's odd is that vars declared inside a
> > function escape to the outside at all, regardless of whether
> > it's a UDF or component method. I haven't seen that in other
> > languages. Is it common?
> 
> I believe that's the default behavior in JavaScript as well.

-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740


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

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


Reply via email to