[racket] trouble with draw.ss teachpack

From: Jay (planarian at hotmail.com)
Date: Sun Sep 19 18:12:08 EDT 2010

Thanks very much! I didn't quite grasp the interface, and thought I was supposed to "Open" teachpacks; after trying "Language->Add Teachpack" everything works just fine. I appreciate your help.
 


Subject: Re: [racket] trouble with draw.ss teachpack
From: matthias at ccs.neu.edu
Date: Sun, 19 Sep 2010 16:55:34 -0400
CC: users at racket-lang.org
To: planarian at hotmail.com





1. The draw teachpack should be used with the HtDP teaching languages only. 


I just did so and the following program runs just fine in Beginning Student Language. 



(start 100 100)
(draw-circle (make-posn 30 30) 10 'blue)
;; there's nothing else in the Def area 


2.  I recommend shunting the first two chapters in HtDP in favor of 


http://www.ccs.neu.edu/home/matthias/HtDP2e/index.html




On Sep 19, 2010, at 2:24 PM, Jay wrote:

Hello,
 
I'm a complete newcomer to Racket. I've just begun working my way through HTDP, and have run into problems with exercise 6.2.1, which uses draw.ss. When I load the file, Racket complains when I make any reference to the "posn" struct (which is essential to all of the drawing tools), saying that it hasn't been defined. If I change tactics and try to start from the standard "beginner's" language (which does include the necessary "posn" definitions) and then copy over and run the declarations from draw.ss, that produces a "module not defined" error. I'd appreciate any guidance.
 
Thanks for your time!
 
 
Jay
_________________________________________________
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100919/b860ad6d/attachment.html>

Posted on the users mailing list.