Re: [racket-users] Re-defined constant when dynamically evaluating module forms

2021-05-12 Thread Matthew Flatt
I think the problem here is that you're re-defining a module. The `lifted/4` binding is probably a generated one in the module, and redeclaring the module would require changing `lifted/4` --- and probably other bindings that you would recognize, but `lifted/4` happens to be hit first. To avoid

[racket-users] Re-defined constant when dynamically evaluating module forms

2021-05-12 Thread Sage Gerard
I have a program that takes a (trusted) module form as a list and then pulls out a provided value using this method. I used syntax/modread and generate a pseudorandom id for each value of `trusted` here. (define-namespace-anchor anchor) (define module-namespace (namespace-anchor->namespace