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 racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
#lang racket (define top-class% (class object% (super-new) (define/public (a-method) (displayln "Hello from top class")))) (define sub-class% (class top-class% (super-new) (define/private (another-method) (displayln "Hello from another method")) (define/override (a-method) (displayln "Hello from sub class") (send this another-method)))) (send (new sub-class%) a-method)