In that vein, I've seen someone (I forget who, so if you are on this
list, please forgive me), do something like this:
(pseudo-code for a cfc)
function init(arg1,arg2) {
make new instance of cfc
ob.setArg(arg1);
ob.setArg(arg2);
return ob;
}
and in the caller:
<cfset foo = createObject("component","thecfc").init("your","mother")>
========================================================================
===
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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Barney Boisvert
> Sent: Thursday, July 24, 2003 12:29 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] Unofficial? Constructor
>
>
> official or not, it's still rather hackish, IMHO. Much
> better to add an
> init() method and explicitly call that when you create the
> object, because then you can also pass parameters to it
> (impossible with the native 'constructor').
>
----------------------------------------------------------
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).