Good point; what got me thinking about it was in trying to figure out how to contribute a patch for the "MSSQL alias in where clause" bug, and not seeing where the _getDao method was defined. One significant advantage of Java (or any compiled language) over CF (or any interpreted language) is that it tends to be much easier to find and track method calls and definitions, precisely because of rules like "the base class can't call a method on a subclass unless that method is defined in the base class". Just having the method defined with a comment indicating that the subclass implements the method would have been helpful (so there is *some* point to it... :-) ).

But in this case (particularly if it would negatively impact performance), it's not a big deal -- especially since people aren't generally supposed to be mucking with the code.

Christopher Bradford
Alive! LLP

----- Original Message ----- From: "Sean Corfield" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 08, 2006 9:10 PM
Subject: SPAM-LOW: Re: [Reactor for CF] Abstract base CFCs and generated CFCs


On 6/7/06, Christopher Bradford <[EMAIL PROTECTED]> wrote:
thing in OO terms (and wouldn't work in the Java world). If I may be so
bold, I would recommend adding the getDao method (and any others that are in the generated CFC but not in the base) to the base (abstractRecord in this
case) and have it either do nothing or throw an error, since it must be
implemented by the inheriting object.

You're thinking like a Java developer! Think like a ColdFusion
developer: there is absolutely no point in having the base class
method. In fact, adding it would probably slow Reactor down...
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --








-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to