[racket] method implementation after struct
It seems like the implementation of a generic method must come before
the structure definition:
(struct Protocol (name interfaces)
#:transparent
#:methods gen:dumpable
((define dump dump-Protocol)))
(define (dump-Protocol p out) ...)
; dump-Protocol: undefined;
; cannot reference an identifier before its definition
Is this a bug? Just a limitation?
--
Anthony Carrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.racket-lang.org/users/archive/attachments/20150206/eff49fbc/attachment.sig>