If you do this, it works:
    (define/override (a-method)
      (displayln "Hello from sub class")
      (another-method))
Because `another-method` is a private method, send doesn’t know about it (I 
think; I haven’t used private methods much).  

On Apr 23, 2015, at 5:41 AM, Aidan Gauland <[email protected]> wrote:

> I get a method-lookup failure when I try to call, from a method
> override, a method defined in the overriding class.  (See attached
> program source.)  What do I need to be doing differently for this to work?
> 
> Thanks,
> Aidan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
> <subclass-method-problem.rkt>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to