On Thu, 02 Feb 2012 14:32:28 -0500, Eli Barzilay wrote: > 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)
Thanks. ____________________ Racket Users list: http://lists.racket-lang.org/users