[plt-scheme] MzLib's class.ss
Use a rename clause:
(define my-frame%
(class frame%
(rename [super-on-close on-close])
(define/override (on-close)
... do my cleanup ...
(super-on-close))
(super-instantiate ())))
Robby
At Sun, 19 Jan 2003 15:58:08 -0500, Taylor Campbell wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Is it possible to override a method, and in the overrided method's body
> apply
> the original method?
>
> i.e., in Objective-C, for example, you could do:
>
> - (id)myMethod:(id)arg
> {
> return [super myMethod:[arg foo]];
> }
>
> Also, how can I get the class of an object?
>