Re: [racket-users] Re-using an identifier as a submodule name?

2016-07-17 Thread Alex Knauth
> On Jul 15, 2016, at 12:22 AM, Jack Firth wrote: > > But I'm hitting scope issues - I'm not sure hot to make the redefinitions of > func available in (body ...) in a (with-foo func body ...) use, naively > adding the require imports fails to bring them into scope. Various > combinations of u

Re: [racket-users] Re-using an identifier as a submodule name?

2016-07-15 Thread Alex Knauth
> On Jul 15, 2016, at 1:54 AM, Jack Firth wrote: > > On Thursday, July 14, 2016 at 10:28:07 PM UTC-7, mattap...@gmail.com wrote: >> On Friday, July 15, 2016 at 2:22:50 PM UTC+10, Jack Firth wrote: >>> I'd also like `with-foo` to be the only way to access the versions of >>> helper1 and helper2

[racket-users] Re-using an identifier as a submodule name?

2016-07-14 Thread Jack Firth
I've got a macro that extends function definition by letting the user rebind some identifiers with different values, which are then only available in a certain context. For the sake of simplicity suppose it looks like this: (define/foo (func v ...) #:bind [helper1 expr] #:bind [helper2 other