[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to find new variables
- From: "Maciej Maczynski" <macmac@...>
- Date: Thu, 15 Jun 2000 15:05:40 -0000
> Use the "setglobal" tag method for tag(nil) and save the names in a table.
> Something like this (untested):
>
> do
> local G={n=0}
> function set_checkpoint()
> settagmethod(tag(nil),"setglobal", function (n,v) tinsert(%G,n) end)
> end
> function print_new_globals()
> foreachi(%G,print)
> end
> end
>
<------------- CUT-------------->
Thanks! That's what I need.
Maciej