On Sat, Jul 10, 2010 at 12:52 AM, Skeptic . <skeptic2...@hotmail.com> wrote:
>
> I was trying to come up with a naive implementation of check-expect/test and 
> I found out that if a macro expands to a set! on a module-level variable 
> directly, an error will be given when using the macro from another module. A 
> simple fix seems to instead have the macro to expands to a function call that 
> performs the set!.

That's correct.  A `set!' must be in the same module as the one that
defines the variable being mutated.  And your fix of creating a
mutator function is also correct.
-- 
sam th
sa...@ccs.neu.edu
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to