-----Original Message----- From: Dan Grossman <d...@cs.washington.edu> To: David Vanderson <david.vander...@gmail.com> CC: jkaczorek <jkaczo...@aol.pl>; users <users@racket-lang.org> Sent: Mon, 31 Oct 2011 21:25 Subject: Re: [racket] set! racket behaviour I also found it counterintuitive that #lang racket (define x 0) (set! x 1) works, but moving the set! out of the module and into the REPL does not. But Dave has pointed to the exact line in the Guide that makes this clear: A module-level definition is mutable only if there is a set! for it in the module. Once you know that "reasonable compromise" [as I put it in my emerging lecture materials], everything works as expected. Thanks for all Your responses Jerzy
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users