[racket] Scribble - how to document init-fields of a mixin with or without default values

From: Erich Rast (erich at snafu.de)
Date: Thu Oct 18 14:40:19 EDT 2012

Hi,

I have a mixin with several init-fields, but it seems that scribble
won't allow me to use @defconstructor/auto-super (Error defmixin: use
does not match pattern) For example, in the following skeleton of a
mixin,

(define tooltip-mixin
  (mixin (window<%>) () (super-new)
    
    (init-field tooltip)
    (init-field (tooltip-proc #f))
    (init-field (show-tooltip? (lambda (parent) #t)))
    (init-field (min-tooltip-width 100))
    (init-field (tooltip-interval 1000))
    
    .... ))


how do I document the init-fields?

Best,

Erich

Posted on the users mailing list.