[racket] struct in racket

From: 趙Frodo (frodogreat at gmail.com)
Date: Sun Sep 5 22:05:43 EDT 2010

I don't know if I did something wrong or not, but this seems strange to me.

Using #lang racket, in the interaction window from DrRacket (DrRacket,
version 5.0.1, english by PLT),

> (struct posn (x y))
> (struct? (posn 3 4))
> (struct-info? (posn 3 4))

So (posn 3 4) is not a struct in racket? The same goes for define-struct.

> (struct-constructor-procedure? posn)

Usually how people define structure in Racket?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100906/88203360/attachment.html>

Posted on the users mailing list.