[plt-scheme] on-tick in 2htdp/universe.ss

From: Mitchell Wand (wand at ccs.neu.edu)
Date: Sun Apr 5 14:37:35 EDT 2009

Ahh, interesting.  Like what?  --Mitch

On Sun, Apr 5, 2009 at 2:05 PM, Matthias Felleisen <matthias at ccs.neu.edu>wrote:

>
> Wrong!!!! This will disable other things.
>
>
> On Apr 5, 2009, at 12:34 PM, Mitchell Wand wrote:
>
> On Sat, Apr 4, 2009 at 3:57 PM, Robby Findler <robby at eecs.northwestern.edu
> > wrote:
>
>> I'm not sure, but it looks like that is a buggy error check. You might
>> try changing the 1 to a 2 in collects/2htdp/universe.ss and seeing
>> what happens. (Search for "(define-keywords AllSpec" and go down two
>> lines, I think.)
>>
>> Robby
>>
>>
> Yup, that was it, but it wasn't the obvious occurrence of 1.  The correct
> patch is as follows:
>
> (define-keywords AllSpec
>   [on-tick (function-with-arity
>             1
>             except
>             [(x rate)
>              #'(list (proc> 'on-tick (f2h x) 2)    ; last arg was 1
>                      (num> 'on-tick rate positive? "pos. number"
> "rate"))])])
>
> Changing the number on line 3 doesn't do anything, but changing the one in
> the line that says proc> does the trick.
>
> Perhaps somebody can install this patch?
>
> --Mitch
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090405/b9e16f67/attachment.html>

Posted on the users mailing list.