At 11:04 AM 3/16/2004, you wrote:
In real OOP languages you are forced to create an object via one of it's constructors. This forces you to provide all the necessary parameters to initialise your object instance.
The problem as I understand it is that you can create an object without initialising it in CF. This is like having a no-argument constructor in every class by default. I understand BlueDragon has a <cfconstructor> for CFC's but I've not looked at it.

Code inside the cfcomponent tag, but not inside a cffunction is executed when the component is initialized. You can make a very good argument that this is not a constructor since it isn't a method, but no one ( at least not yet ) has dictated why using this method is considered bad. Having no code, would be akin to having a blank constructor.



I'm not sure it's a good/bad argument so much as will it always be there. I would have to imagine that Macromedia got the hint on the whole "no constructors feature" topic and will probably add them to Blackstone (no, I have no idea what will be in the next release, but I think it's a decent educated guess). Assuming that this feature is added, will the current pseudo-constructor area continue to exist? If so, will it have the same functionality as the current implementation? If not, how much refactoring will I have to do if I rely on it?


That's what I'm concered about.

Regards,
Dave.

_________________________________________________________________
Free up your inbox with MSN Hotmail Extra Storage. Multiple plans available. http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/


----------------------------------------------------------
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