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.

--
Jeffry Houser, Web Developer <mailto:[EMAIL PROTECTED]>
Aaron Skye, Guitarist / Songwriter <mailto:[EMAIL PROTECTED]>
--
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Books: <http://www.instantcoldfusion.com>
Recording Music: <http://www.fcfstudios.com>
Original Energetic Acoustic Rock: <http://www.farcryfly.com>

Reply via email to