[plt-dev] Re: Associating metadata with modules

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Sun Mar 7 16:24:28 EST 2010

On Sun, Mar 7, 2010 at 3:15 PM, Carl Eastlund <cce at ccs.neu.edu> wrote:
> I have tried creating a hash table associating module names with
> metadata, but it turns out that module names are a moving target.
> They can be symbols or paths; for the modules I have tried, I get a
> symbol back during the module's own transformer phase, but I get a
> path back during its runtime phase and from either phase of another
> module that depends on it.  (In all cases, I used the name of a
> resolved module path.  In the module itself, I got this from a
> variable reference; from a different module, I used the module name
> resolver.)

Ah ha -- found out what I was doing wrong here.  I was quoting the
name I got during compilation, and using it during subsequent
executions.  If I compute the name of the module at the time I store
its metadata, it'll be consistent during any given execution.


Posted on the dev mailing list.