[racket] match in Advanced Student?

From: Adam Shaw (adamshaw at cs.uchicago.edu)
Date: Mon Oct 31 22:44:55 EDT 2011

It's the same error with or without. Here's the error:

match: color does not refer to a structure definition

Here are two complete source files (no teachpacks), running Adv. Student, DrRacket 5.1.3.

;; begin file 1
(match (make-color 1 2 3)
  [(struct color (r g b)) (+ r g b)])

;; begin file 2
(require 2htdp/image)
(match (make-color 1 2 3)
  [(struct color (r g b)) (+ r g b)])

On Oct 31, 2011, at 9:39 PM, Robby Findler wrote:

> Is make-color coming from 2htdp/image? I see that's not working (not
> sure why yet).
> Robby

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

Posted on the users mailing list.