[racket] image teachpack lacks above

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue Jul 20 20:16:52 EDT 2010

I push releases of HtDP/2e at the same time as new versions of the software are released: every odd month of the year. 

The announcements are available on  <users at lists.racket-lang.org> but also on low-frequency announcement lists: 

 http://racket-lang.org/community.html



On Jul 20, 2010, at 6:43 PM, Richard Mittel wrote:

> Thanks, it does help to know this.  Is there some easy way (like a mailing list) for me to be notified when the HtDP/2e rewrites are done?  -RM
> 
> On Tue, Jul 20, 2010 at 5:33 PM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
> 
> Here is the full explanation:
> 
> There are two distinct teachpacks for images:
>  2htdp/image (the new one; experimental; only available with require)
>  htdp/image (the old one; available both ways)
> 
> We are right now transitioning from the old one to the new one.
> Many programs work in both, but not all. I started rewriting
> the HtDP/2e examples with the new teachpack, but in a way that
> I thought was compatible.
> 
> The problem is that we wish to keep evolving the new teachpack
> and make it only available widely when things are close to
> finished. BUT, so many people have discovered it and so many
> people already know that it is better than the old one that
> we have had lots of request for the new one.
> 
> I guess I will need to rewrite the HtDP/2e version so that
> it is all about the new version.
> 
> Does this help?
> 
> -- Matthias
> 
> 
> 
> 
> 
> 
> 
> 
> On Jul 20, 2010, at 5:31 PM, Richard Mittel wrote:
> 
> Hi,
> 
> Thanks for the speedy response.  Yes, I do get the expected red circle over the blue rectangle.  But I believe HtDP(2) says it should work without the explicit (require 2htdp/image), as long as one first adds the "image" teachpack through the "Add Teachpack" option of the Language menu.  And yet when I do this, it doesn't work, from which I infer (maybe wrongly?) that "above" is missing from the teachpack implementation.
> 
> Thanks again for your time,
> RM
> 
> On Tue, Jul 20, 2010 at 2:16 PM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
> 
> Hi --
> 
> Thanks for asking. I am not sure I understand the question properly.
> When you write
> 
>  (require 2htdp/image)
>  (above (circle 30 "solid" "red") (rectangle 50 10 "solid" "blue"))
> 
> and click on Run you get the expected red circle over a blue rectangle.
> Correct?
> 
> And now you wish to use the Teachpack menu instead of the require line?
> Or are you saying that your implementation of the teachpack doesn't have above?
> 
> Thanks -- Matthias
> 
> 
> 
> 
> 
> 
> On Jul 20, 2010, at 2:41 PM, Richard Mittel wrote:
> 
> Dear Professor Felleisen,
> 
> DrRacket's "image" teachpack does not seem to define the "above" function, as HtDP (second edition, stable version) says it should.  The context is
> 
> (define BDY
>   (above
>     (rectangle (...
> 
> in http://www.ccs.neu.edu/home/matthias/HtDP2e/htdp.html, and I have also added the "universe" teachpack.  I can get "above" by doing (require 2htdp/image), but I really need the teachpack approach to work.  Please help.  If the problem is somehow due to my own error, please accept my apologies in advance.
> 
> Thank you,
> RM
> 
> 
> 
> 

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

Posted on the users mailing list.