Re: [racket] Generics and gen:custom-write

2013-12-03 Thread Laurent
Thanks for your answer. Too bad -- I guess I'll have to rewrite the custom print then. Laurent On Mon, Dec 2, 2013 at 9:16 PM, Vincent St-Amour wrote: > `define/generic' binds the specified generic function to a new > identifier, to allow methods to call the generic function recursively. > In y

Re: [racket] Generics and gen:custom-write

2013-12-02 Thread Vincent St-Amour
`define/generic' binds the specified generic function to a new identifier, to allow methods to call the generic function recursively. In your case, your `write-proc' calls `super-write' which, after dispatch, calls your `write-proc' again. What you want would be some a bit like CLOS's `call-next-m

Re: [racket] Generics and gen:custom-write

2013-12-02 Thread Laurent
Anyone has an answer to this? Thanks, Laurent On Tue, Nov 12, 2013 at 1:58 PM, Laurent wrote: > I'm trying to implement a custom writer for a struct with generics, but I > think I'm misunderstanding something. > > What I want to do is specialize only the behavior for `write' and > `display', b