[plt-scheme] new rotate function in 2htdp/image

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Nov 6 20:30:53 EST 2009

That won't work. The two image-width functions are not compatible (the
one universe uses will fail on the images provided from 2htdp/image),
for example.

Robby

On Fri, Nov 6, 2009 at 3:14 PM, Jordan Johnson <jmj at fellowhuman.com> wrote:
> Is there any reason (aside from that it's a hassle) not to use except-in and
> only-in when requiring the image and universe libraries?  I haven't tried
> it, but it seems like that's one possible temp solution for Eric's
> problem...
>
> Best,
> Jordan
>
>
> On Nov 6, 2009, at 4:08 AM, Robby Findler <robby at eecs.northwestern.edu>
> wrote:
>
>> The current 2htdp/universe does not use 2htdp/image (it instead uses
>> htdp/image). The 2htdp/image library is still pretty new and missing
>> lots of image primitives. I hope to get more of them going soon and
>> probably after that 2htdp/universe will switch over to using
>> 2htdp/image.
>>
>> In the meantime, if all you want to do is program with images (but not
>> use the world or universe stuff), you can just require 2htdp/image by
>> itself.
>>
>> hth,
>> Robby
>>
>> On Fri, Nov 6, 2009 at 1:15 AM, Eric Swenson <eric at swenson.org> wrote:
>>>
>>> I'd like to be able to use the new "rotate" function in 2htdp/image in a
>>> big-bang simulation. So far, I've been unable to figure out how to do
>>> this.
>>>  If I simply use
>>> #lang scheme
>>> (require 2htdp/universe)
>>> I can successfully use big-bang but the new "rotate" is not available
>>> (this,
>>> despite the fact that it seems like universe causes the
>>> private/image-more.ss module to get loaded).
>>> If I try to do this:
>>> #lang scheme
>>> (require 2htdp/universe)
>>> (require 2htdp/image)
>>> I get this error:
>>>  module: identifier already imported from a different source in:
>>>  rectangle
>>>  2htdp/image
>>>  2htdp/universe
>>> If I do this:
>>> #lang scheme
>>> (require 2htdp/image)
>>> then "rotate" is available and works fine, but "big-bang" is not
>>> available.
>>>  I can't seem to get the combination of "universe" and the new additions
>>> to
>>> "image" to work together.
>>> Can anyone offer a hand?
>>> Thanks. -- Eric
>>>
>>> _________________________________________________
>>>  For list-related administrative tasks:
>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>>
>>>
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.