[racket] method implementation after struct

From: Anthony Carrico (acarrico at memebeam.org)
Date: Fri Feb 6 22:13:48 EST 2015

It seems like the implementation of a generic method must come before
the structure definition:

(struct Protocol (name interfaces)
        #: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>

Posted on the users mailing list.