I have the following problem. I want to replace procedure gensym with a mock to test a piece of software with predictable gensym values. When this is done, I restore the old gensym. Thus I wrote this code in racket:
(define old-gensym gensym) (define gensym <a mock ...>) ...test... (define gensym old-gensym) but when I run it, I get "reference to an identifier before its definition: gensym". On the other hand, if I write the same code in the interaction window, everything works as expected. Is this a bug? ____________________ Racket Users list: http://lists.racket-lang.org/users