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

Attachment: signature.asc
Description: OpenPGP digital signature

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to