[racket] forward pointer declarations

From: Anthony Carrico (acarrico at memebeam.org)
Date: Sun Feb 1 17:57:16 EST 2015

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

-------------- 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/20150201/4aede7b4/attachment.sig>

Posted on the users mailing list.