[racket-dev] Huh?

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Dec 3 06:29:34 EST 2013

Thanks for the tip on renaming. Just what I needed.

/Jens Axel


2013/12/3 Eli Barzilay <eli at barzilay.org>:
> 6 hours ago, Jens Axel Søgaard wrote:
>> In DrRacket 6.0.0.1 open
>>
>>    pkgs/draw-pkgs/draw-lib/racket/draw/private/record-dc.rkt
>>
>> and then click Run.
>>
>> I see:
>>
>>   define-values: assignment disallowed;
>>    cannot re-define a constant
>>     constant: get-recorded-command1.1
>>
>> Why?
>
> That's not new -- usually when you run the code you get a clean
> environment with the old instantiation gone, but some core files are
> shared across runs, so it's like trying to redefine things that are
> already defined.  Many files in racket/* will do the same.  To debug
> this kind of stuff it can be helpful to work on a copy of the file
> that you want to edit, and rename it back over the original (and
> recompile) when it's working.
>
> --
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                     http://barzilay.org/                   Maze is Life!



-- 
--
Jens Axel Søgaard


Posted on the dev mailing list.