>>>>> "darren" == darren chamberlain <[EMAIL PROTECTED]> writes:

darren> * Franco Bagnoli <franco.bagnoli at unifi.it> [2003-09-03 13:09]:
>> (I did not realize that one could estract the dbh from the object)

darren> This whole thread has got me wondering if maybe the DBI plugin should
darren> actually subclass DBI, rather than contain a DBI object.  Does anyone
darren> know of a reason not to do this?

Subclassing DBI is a bit of a mess, because it also returns objects
that might also need to be subclassed, and you have to do that carefully.

Also, if any of the DBI object's methods want to call methods also
defined by a T:P:DBI, it'd be a mess, because they'd have been
overridden.  Ooops!

The existing system is fine... it lets you get at the wrapper object,
or the wrapped object.

You *might* consider an autoload that does an autodelgate to the wrapped
object... that's almost like inheritance, and would have allowed the
original poster to get at ".func" properly.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to