Hi all, This is a bit difficult to explain, so bear with me.
I have a very simple macro which generates a runtime call to a normal function. The macro is so the arguments can be [more or less] free form expressions - the runtime function is because the computations are not simple and some of them require current runtime information like dates, times, etc. I'd like to allow the [normal] function that processes the expressions to reference variables and functions defined in the code surrounding the macro invocation. I can get at top-level defines using eval, but thus far I can't figure out how to get at locals in a function that is invoking the macro. I know that I can do this if I go the "compile" route, generating code to do the computations inline rather than punting to a runtime function. The issue I have with that is that some uses would end up generating quite a bit of code, and a program that used the macro extensively would swell accordingly. So is there a way ... from normal code ... to get at the locals of functions higher in the call chain? Or at least the immediate caller? Some reflective capability that I haven't yet discovered? If not, I'll just go the "compile" route and live with it. Thanks, George -- 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 racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.