[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: equivilant of 'index' tag method for globals?
- From: David Jeske <jeske@...>
- Date: Tue, 1 Dec 1998 11:59:09 -0800
On Tue, Dec 01, 1998 at 04:21:11PM -0200, Roberto Ierusalimschy wrote:
> settagmethod(tag(nil), "getglobal", <your function>)
>
> <your function> will be called with the name of the global variable and
> its original value (nil in this case). (I suppose it is "find_enum" in your
> case).
Thanks, that worked great. I wasn't understanding that it was actually
calling the 'getglobal' tag method on the "nil" which is returned
because the variable isn't there. I'm all straightened out now.
--
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net