Yes, I know you can do that in Java. However that's not the language of most CFCs I've seen. I was hoping that you would support your supposition with some code showing a viable alternative in CFML or cfscript.

--
Howard Fore, [EMAIL PROTECTED]
"The dogmas of the quiet past are inadequate to the stormy present. The occasion is piled high with difficulty, and we must rise with the occasion. As our case is new, so we must think anew and act anew." Abraham Lincoln



On Mar 16, 2004, at 3:38 PM, Matt Liotta wrote:


Maybe it's just me... If the constructor method doesn't return what it has constructed, how does one interact with the object after creation?

That is generally handled for you by a language construct. In the case of Java, the new keyword takes care of this for you. Otherwise, you would call a static method on Class to get the appropriate class object and then call newInstance() to get an instance, which invokes the constructor on your behalf.

-Matt

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words '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