I have a module that during its expansion calls a function defined by a 
parameter.

I have a command line tool that would like to read a module path and 
dynamic-require it with that parameter changed to implement tool-specific 
behavior.

However, (parameterize ([param tool-func]) (dynamic-require mod-path)) doesn't 
seem to work because the parameter is being set for the runtime phase rather 
than the expansion time phase.

How can I dynamically require a module while changing a parameter it uses at 
expansion time?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to