[plt-scheme] accessing a top-level variable whose name is stored in a global variable

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jul 27 09:13:25 EDT 2009

On Sun, Jul 26, 2009 at 7:52 AM, Gregg Williams<spamme at innerpaths.net> wrote:
> My intent is this. A "rack" is a named list defined at the top level,
> and my program has exactly one active rack. You guessed it, its name
> is stored in *infoml:active-rack-name*. In my code, I create a rack
> named decision-making as follows:

I don't understand why you don't store the active rack directly in
this variable, rather than a symbol identifying it.  If you want to
map symbols to value, a hash table will do that.

HTH,
N.


Posted on the users mailing list.