Re: [racket] compile-enforce-module-constants parameter and redefinition of constants

2011-12-22 Thread Matthias Felleisen
Two definitions for a variable in the same scope never works. In the first case, Matthew would probably say "the top level is broken." -- Matthias On Dec 21, 2011, at 11:16 PM, Harry Spier wrote: > Can someone explain why this example from the Racket Guide allows a > re-definition of a const

[racket] compile-enforce-module-constants parameter and redefinition of constants

2011-12-21 Thread Harry Spier
Can someone explain why this example from the Racket Guide allows a re-definition of a constant but the second case (not from the Racket Guide) gives an error. Both are executed in the interactions window of DrRacket. Many thanks, Harry > (compile-enforce-module-constants #f) > (module m2 racket