[plt-scheme] Re: Object system

From: Guenther Schmidt (gue.schmidt at web.de)
Date: Sun Dec 21 12:46:04 EST 2003

Dear Matthew,

it seems that no code will be executed *after* a call to the "renamed" super method.

In this particular case it could be because a call to the super-method (on-subwindow-char) returns *void*.

Best regards


The "sup" in the example below is a call to the renamed super method "on-subwindow-char", the (send x get-value) doesn't get executed.

Matthew Flatt wrote:

>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> At Sun, 21 Dec 2003 15:21:28 +0000, Guenther Schmidt wrote:
>>I would need to add some code in the redifinition *after* the call to the 
>>"super method", something like
>>(sup x y)
>>(send x get-value)
>>But that won't work.
> Do you mean to return #f from the method, which indicates that the
> event should be dispacthed as usual when the `on-subwindow-char' method
> returns?
> It sounds like you're returning a true value, which indicates that the
> event has been consumed, and shouldn't be processed further.
> Matthew

Posted on the users mailing list.