Re: How do I retrieve the 'type' of an object
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: How do I retrieve the 'type' of an object
- Date: Mon, 7 Jun 2004 12:06:37 -0400 (EDT)
A. Pagaltzis said:
* muppet <scott asofyet org> [2004-06-07 12:44]:
in this situation, though, polymorphism will require
multiple inheritance,
No, it doesn't. You should simply stick your methods in the
existing base class package. (Ruby calls it mixins and in Perl6
we will be doing that routinely.)
ugh! since when is this considered to be a good idea? i've always thought of
it as a quick and dirty way to get something to work, but not something you
want to use for Real Solutions.
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]