I get a "duplicate definition" error if I declare a pointer ahead:

(define _wl_interface-pointer (_cpointer 'wl_interface))

(define-cstruct _wl_interface
  ((name _string/utf-8)
   (version _int)
   (method_count _int)
   (methods _wl_message-pointer)
   (event_count _int)
   (events _wl_message-pointer)))

or a "cannot reference an identifier before its definition" if I don't.
I'll keep looking through the docs to see if there is another way, but
please speak up if you happen to know the correct pattern.

-- 
Anthony Carrico

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to