Hi Mark, On Sun 08 Jan 2012 21:39, Mark H Weaver <m...@netris.org> writes:
>>>> Are there some short primitives that psyntax could export that >>>> would make it possible to implement `the-environment' in a module? > >>> * The list of ordinary variables (these need to be boxed) >>> * The list of simulated variables (we need to reuse the original box) >> >> A special form to get all visible variables, and syntax-local-value plus >> a weak hash to do the optimization? > > We could do it that way, but that strategy would not extend nicely to a > more complete implementation, where local syntactic keywords are > captured. Why not? Syntax-local-value can provide the macro transformer. It still seems to me that this is an attractive option, especially if we are to introduce syntax-local-value anyway. Andy -- http://wingolog.org/