[plt-scheme] Teaching languages and 2htdp/image
On Jun 4, 2010, at 10:52 AM, Justin Zamora wrote:
> I would like to use 2htdp/universe and 2htdp/image with the HTDP
> teaching languages, but I get conflicts because image? is defined
> differently in 2htdp/image and the teaching languages. For example:
>
> #lang racket
>
> (require lang/htdp-beginner)
> (require 2htdp/universe)
> (require 2htdp/image)
>
> results in the error:
>
> simple-world.rkt:5:9: module: identifier already imported from a
> different source in:
> image?
> 2htdp/image
> lang/htdp-beginner
>
> I can avoid this by using (require (rename-in lang/htdp-beginner
> (image? htdp/image))), but that seems inappropriate "magic" to use
> with beginning students. Is there a better way to achieve this?
Is there a reason why you are not using the teaching languages?
They were designed to teach students w/o getting into complicated
matters like these.
-- Matthias