[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: getglobal()
- From: RLake@...
- Date: Tue, 5 Feb 2002 10:34:42 -0500
> Example:
> Lol={}
> Lol.Write={}
> Lol.Write.Version=001
> print(Lol.Write.Version) --> print expected 1
> Name='Write'
> print(getglobal('Lol.'..Name..'.Version')) --> print nil ???
Maybe I'm being dense, but what's wrong with:
getglobal"Lol"[Name].Version
Is it that Name might be a hierarchical (i.e. a series of tokens separated
by ".")?
If so, I would just not worry about it. The hash lookup will work just as
well on strings with dots in them as with strings without dots.
Rici