[racket] problems with struct datatype

From: Guppoc Soft (guppoc at gmail.com)
Date: Sat Aug 14 01:37:28 EDT 2010


I'm trying to use the new struct datatype, but I keep getting the following

struct: illegal use of signature form in: (struct posn (x y))

when defining the struct. The old way of defining a struct ((define-struct
...)) works though.

I'm running DrRacket version 5.0.1 on Ubuntu 10.2 that I built from source.

Any ideas on why the error occurs?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100814/28bbb83b/attachment.html>

Posted on the users mailing list.