[plt-scheme] class.ss: super vs this methods

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Fri Aug 4 23:08:30 EDT 2006


Carl Eastlund wrote:
> On 8/4/06, Jon Rafkind <workmin at ccs.neu.edu> wrote:
>> I mean you cant refer to a function not declared explicitly in the scope
>> of the class you are using without using (super) or (send this)
>
> Is "inherit" what you're looking for?  That will inherit from anywhere
> arbitrarily high up the class hierarchy, and bind a local name so you
> can call it directly.  The names do have to be declared somewhere,
> though; because superclasses are not always known statically, the
> class system does not automatically know what set of names is
> inherited.
>
Ah yes that works as I expected it to. thanks.


Posted on the users mailing list.