lua-users home
lua-l archive

How to find new variables

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


Hi,
I'd like to have some way to list recently created Lua globals.
Something like:
-- remember current globals
varset = set_checkpoint()
..
-- code goes here
..
..
-- and now, I'd like to have the listing of new globals compared with
"varset"
print_new_globals( varset )
I know, I can call foreachvar in set_checkpoint, store the names and compare
them agains currently
defined globals in print_new_globals. But, I'm pretty sure you know better
solution...
Maciej

AltStyle によって変換されたページ (->オリジナル) /