On Sunday, Mar 30, 2003, at 10:10 US/Pacific, Joe Eugene wrote:
>> ... load all the data into some instance variable ...
> What is a true instance variable in a CFC?
>
> <cfcomponent>
>  <cfset myVar="Hello" />
>
> Is the above equivalent to
>
> public class SomeVars{
>   public String myVar="Hello";
> }

No. <cfset myVar="Hello" /> creates a non-public instance variable. 
<cfset this.myVar="Hello" /> would create a public instance variable. 
However, there is really no direct mapping to Java like this because CF 
semantics are driven by a number of things that aren't part of Java's 
semantics (like: case insensitivity of everything; scopes are really 
structures so variables are really just members of structures; the 
generally dynamic nature of CF).

> How are contructors implemented in CFC's?
> Is there a default constructor for a CFC?
> Do CFC's have public/private/protected, static/final instance
> variables?
> Can somebody explain the above or point to any docs?

Why not just change the setting in the XML file so that when CF 
compiles your code, it leaves the .java files lying around?

In WEB-INF/web.xml, change the saveJava param from false to true.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to