[racket] changing a #<procedure:...> value when paused in debug mode

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue Aug 6 18:10:32 EDT 2013

If this is your code in th edef window: 

#lang racket
(define (f x) x)
(set! f f)

you can do this in the REPL: 

Language: racket.
> (f 10)
> (set! f (lambda (x) (+ (sqrt x) 20)))
> (f 10)

On Aug 6, 2013, at 4:03 PM, Edgar Honing <ephoning at gmail.com> wrote:

> Hi,
> Is it possible to set! other values than a string or a number using the set! dialog in DrRacket while in debug mode? For example: I was wondering whether a procedure value can be reassigned to another procedure/lambda.
> Thanks much,
> Edgar
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.