lua-users home
lua-l archive

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


I wish to print a list of all variables and their type:

a=nextvar(nil);
while (a~=nil) do
print(format("%s-%s",a,type(a)));
a=nextvar(a);
end


however, this will not work because a is always a string.  how do i 
get around this?

-cameron tofer