hmph.  Interesting.  I know a cfc is not an actual Object per se, but thought it 
modeled the idea a little closer I suppose.  Okie dokie

>-----Original Message-----
>From: Nathan Dintenfass [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 19, 2003 5:45 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [CFCDev] setting cfc vars etc not defined in a cfc?
>
>
>You cannot prevent it.
>
>A CFC is not a real "object" in the java sense you are talking 
>about.  It
>behaves a lot more like a struct of functions (with some 
>special behaviors)
>than a java object instance.
>
>Just FYI, if you had put "t" in the THIS scope inside your CFC 
>you'd have
>the same behavior since "THIS" is a reference to the public 
>scope of the CFC
>instance.
>
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Behalf Of [EMAIL PROTECTED]
>> Sent: Friday, September 19, 2003 2:34 PM
>> To: [EMAIL PROTECTED]
>> Subject: [CFCDev] setting cfc vars etc not defined in a cfc?
>>
>>
>> Ok, playing around with stuff this afternoon.  I created an
>> 'empty' cfc named test.cfc, its empty for no good reason just a
>> proof of concept
>> <cfcomponent>
>>
>>      <!--- empty --->
>>
>> </cfcomponent>
>>
>> Now I created test.cfm
>> <cfscript>
>>
>>      myobj = CreateObject("Component", "test");
>>      myobj.t=6;
>>      WriteOutput('t= ' & myobj.t);
>> </cfscript>
>>
>> When I call test.cfm from ze browser I get no error. In fact I
>> get t= 6 output to the browser.  Now in Java, etc... this would
>> bomb out.  How can I programatically keep this from occuring?  Or
>> can I?  Am I missing something here?
>>
>> Doug
>>
>
>----------------------------------------------------------
>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]
>
----------------------------------------------------------
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