That will work only if init() doesn't take any arguments.

Hal Helms
See halhelms.com for classes in...
Java for ColdFusion Programmers
Fusebox 4
Mach-II
OO Applications with CFCs

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2003 9:18 AM
To: CF-Talk
Subject: RE: CFC/Object Best Practice


While what you say is true, folks should remember that CF will run any
code outside of cffunction tags automatically. So, if you do this:

<cfcomponent>

        <cfset init()>

        <cffunction the init method >

        </cfunction>

</cfcomponent>

Then you will _not_ need to call init() yourself.

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Hal Helms [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 12:29 AM
> To: CF-Talk
> Subject: RE: CFC/Object Best Practice
> 
> 
> CFCs don't have true constructors at this time. To make up
> for that, several people have standardized around the idea of 
> a method called init(), but it's up to the programmer to call 
> init(); the system doesn't do it itself.
> 
> Hal Helms



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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

Reply via email to