I'm not sure what you're trying to achieve with the code below. Can you provide some explanation of the thinking behind it?
Spike Taco Fleur wrote: >>The first problem is that in the Java world the constructor is declared as > > private so you can't create an instance of the class. You can't do that in > CF. > > Exactly, I have been thinking about that, how about the following? > > <cfcomponent> > > <cfset main() /> > > <cffunction > name="main" > access="private" > returntype="string" > output="true"> > </cffunction> > > <cffunction > name="init" > access="public" > returntype="any" > output="true"> > <cfreturn this /> > </cffunction> > > </cfcomponent> > > -- -------------------------------------------- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - New Atlanta http://www.newatlanta.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189208 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

