Thanks, I've pushed a fix for this.

If you want, you can apply this diff (use the "File | Open Require
Path..." menu item in DrRacket and type
"graphics/private/value-turtles" into the dialog to find the right
file to edit). You'll have to restart DrRacket to see your changes
work. And you may find that programs run more slowly after that --
it's because it is now compiling from source each time you hit "Run".
You'll need to run "raco setup" from a Terminal / command.com prompt
to fix that. (It will print a lot of output -- just wait for it to
finish.)

https://github.com/racket/htdp/commit/1d6bfae614720c3ed9a2e4956983d650beee143a

You could also use tomorrow's snapshot builds.

Robby

On Sat, Mar 19, 2016 at 5:31 PM, nikofeyn <nikof...@gmail.com> wrote:
> Lol. I almost mentioned my confusion on why the interactions window appeared
> to be clearing itself when running that code but had obviously not scrolled
> up. Simple solution indeed.
>
> I guess my next question would be how to move the display window to a
> separate window similar to what "(turtles #t)" does, but I haven't looked
> into that yet. If someone knows the quick answer though I'm all ears. :)
>
> Am I right in guessing that the value-turtles library is preferred for
> performance (since it's not constantly updating a window) and functional
> dataflow reasons?
>
> Thanks for taking a look. My copy of Turtle Geometry arrived today, so I'm
> going to dive in.
>
> On Sat, Mar 19, 2016 at 5:51 PM, Jens Axel Søgaard <jensa...@soegaard.net>
> wrote:
>>
>> I ran your program and was, too, a bit confused at first.
>> But ... turns out it is simple.
>> Run the program in DrRacket.
>> Switch to the repl.
>> Then scroll up!
>> The "windows" are displayed as pictures in the repl,
>> but they are so big, that you can't see them at first.
>>
>> /Jens Axel
>>
>>
>>
>>
>> 2016-03-19 22:47 GMT+01:00 <nikof...@gmail.com>:
>>>
>>> Hello,
>>>
>>> I am beginning a project in which I want to use Racket's turtle
>>> functionality to implement the examples and exercises from the book Turtle
>>> Geometry.
>>>
>>> In doing so, there is of course the choice between the traditional
>>> turtles (graphics/turtles) and the value turtles (graphics/value-turtles).
>>>
>>> I am playing around with the two libraries to pick a direction. The
>>> implication is that the value-turtules is more functional in nature and thus
>>> the ideal, long-term way to go. However, I am unable to get a turtle window
>>> to display.
>>>
>>> For example, the following code does nothing and returns no errors:
>>>     #lang racket
>>>     (require graphics/value-turtles)
>>>     (require graphics/value-turtles-examples)
>>>     (define twindow (turtles 500 500))
>>>     (neato twindow)
>>>     twindow
>>>
>>> For the traditional turtles, the following code works just fine:
>>>     #lang racket
>>>     (require graphics/turtles)
>>>     (require graphics/turtle-examples)
>>>     (turtles #t)
>>>     (neato)
>>>
>>> What am I doing wrong with the value-turtles? It's not clear how to
>>> actually display the turtle window/drawing.
>>>
>>> This isn't related to this issue is it?
>>> https://groups.google.com/forum/#!searchin/racket-dev/turtles/racket-dev/qv840Wtwu5E/vC08lyZjAWQJ
>>>
>>> Thanks!
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to racket-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>
>> --
>> --
>> Jens Axel Søgaard
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to