Guppoc Soft | 14 Aug 07:37
Picon

[racket] problems with struct datatype

Hi,

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

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?




Noel Welsh | 14 Aug 08:06
Picon

Re: [racket] problems with struct datatype

You're using #lang scheme instead of #lang racket, I expect.

N.

On Sat, Aug 14, 2010 at 6:37 AM, Guppoc Soft <guppoc@...> wrote:

> Any ideas on why the error occurs?
Guppoc Soft | 14 Aug 08:11
Picon

Re: [racket] problems with struct datatype

That fixed it! I'll remember to use #lang racket stead of #lang scheme from now on. Thank you.

On Sat, Aug 14, 2010 at 11:36 AM, Noel Welsh <noelwelsh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
You're using #lang scheme instead of #lang racket, I expect.


Guppoc Soft | 14 Aug 08:11
Picon

Re: problems with struct datatype

That fixed it! I'll remember to use #lang racket stead of #lang scheme from now on. Thank you.

On Sat, Aug 14, 2010 at 11:36 AM, Noel Welsh <noelwelsh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
You're using #lang scheme instead of #lang racket, I expect.


Noel Welsh | 14 Aug 08:06
Picon

Re: problems with struct datatype

You're using #lang scheme instead of #lang racket, I expect.

N.

On Sat, Aug 14, 2010 at 6:37 AM, Guppoc Soft <guppoc@...> wrote:

> Any ideas on why the error occurs?

Gmane