A few minutes ago, Danny Yoo wrote: > Here's how to work around this: you can add the following right after > a definition, such as f: > > #lang racket > (require racket/trace) > (define (f x) (* x x)) > (set! f f) > > The set! there is a no-op, but it effectively tells Racket not to > enforce the constantness of f. Then trace can be run on it from > Interactions.
Perhaps an easier approach is to just trace it inside the definitions: #lang racket (require racket/trace) (define (f x) (* x x)) (trace f) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! ____________________ Racket Users list: http://lists.racket-lang.org/users