[racket] define-generics #:defaults

From: Bert De Ketelaere (bedeke at hotmail.com)
Date: Wed Jul 10 05:03:35 EDT 2013

Helo,

in the documentation it is mentioned that the syntax for define-generics #:defaults is the same as for struct #:methods:
http://docs.racket-lang.org/reference/struct-generics.html#%28form._%28%28lib._racket%2Fgeneric..rkt%29._define-generics%29%29
and #:methods specifies that define/generic can be used to bind the generic method:
http://docs.racket-lang.org/reference/define-struct.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._struct%29%29

but unfortunately using define/generic in #:defaults is a syntax error.
Is it possible to access the generic method from inside #:defaults definitions?

Groeten,
Bert
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130710/5d13deae/attachment.html>

Posted on the users mailing list.