Re: How do I retrieve the 'type' of an object




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]