Re: How to find new variables
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How to find new variables
- From: "Maciej Maczynski" <macmac@...>
- Date: 2000年6月15日 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