lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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