[racket] define-values: cannot re-define a constant: string-trim
That is part of an optimization that Racket does. It sometimes sees
that your function won't be modified in the source and then inlines it
for performance. You attempting to re-define it like that would
violate that assumption so there's an extra check that prevents this
(or else some calls to that function would still (effectively) call
the old one).
Perhaps you should just hit "Run" again after modifying the file.
That's the safest thing. And performance problems can often be helped
by making smaller files.
hth,
Robby
On Sat, Apr 2, 2011 at 5:02 PM, Charles Hixson
<charleshixsn at earthlink.net> wrote:
> This error:
> define-values: cannot re-define a constant: string-trim
> has just started to appear whenever I try to modify in the lower pane a
> function that I've defined in the upper pane. I can work around it by using
> a different name, but it makes it quite difficult to do incremental
> development. Also, it seems to be a new error. (I.e., one that wasn't
> there earlier today.)
>
> Anybody have any idea what's going on?
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>