Type/Class Unification in Ruby
wtanksle at hawking.armored.net
Sat Nov 27 20:41:28 CET 1999
On Thu, 25 Nov 1999 22:25:35 -0500 (EST), Barry A. Warsaw wrote:
>>>>>> "GE" == Greg Ewing <greg.ewing at compaq.com> writes:
> GE> A middle ground might be to allow inheriting from any number
> GE> of user-defined classes, but at most one built-in type.
>And in fact, this is exactly the JPython restriction. Because Java
>has only single inheritance, a JPython class can only have a single
>Java base class, but any number of pure Python base classes.
Another possibility would be to borrow from Sather by making all
inheritance actually act like interface inheritance with delegation.
In other words, JPython creates an interface for every class, and when you
inherit you actually implement and then add a member data thingie.
-William "Billy" Tanksley
More information about the Python-list