Re: [racket] Overriding methods in Racket classes

2013-01-03 Thread Harry Spier
Sorry -- typo in my code, my last email should read: OK using define-local-member-name works, see case 1 below, but it seems it would be much simpler if there was a form define/inheritable which made the method accessable within the class body where it was defined and in the sub-class bodies on

Re: [racket] Overriding methods in Racket classes

2013-01-03 Thread Harry Spier
OK using define-local-member-name works, see case 1 below, but it seems it would be much simpler if there was a form define/inheritable which made the method accessable within the class body where it was defined and in the sub-class bodies only. (see case 2 below) i.e. no wrapping in a let that ret

Re: [racket] Overriding methods in Racket classes

2013-01-03 Thread Asumu Takikawa
On 2013-01-03 17:01:54 -0500, Harry Spier wrote: > In Racket is it possible to override a non-public method? > > [...] > > Apologies if I've missed something obvious but I've just started going > through the Classes and Objects documentation. I can see where you > can declare a method public and o

[racket] Overriding methods in Racket classes

2013-01-03 Thread Harry Spier
Dear list members, In Racket is it possible to override a non-public method? For example in the Racket Guide section 13 and 13.1 it gives this example: (class object% (init size); initialization argument (define current-size size) ; field (super-new); supe