lua-users home
lua-l archive

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


On Sun, Jun 21, 2009 at 12:42 AM, Miles Bader<miles@gnu.org> wrote:
>   for k,v in pairs(_G) do if (type(v) == 'table') then print (k) end end
This seems to be something to do with input length;

These two produce no output (both the same length):
for k,v in pairs(_G) do if (type(v) == 'table') then print (k) end end
for k   ,v in pairs(_G)do if(type(v)=='table')then print(k) end end ;;

These two do produce output (one is shorter than previously, one is longer):
for k,v in pairs(_G) do if type(v) == 'table' then print(k) end end
for  k,  v  in pairs(_G) do  if  type(v) ==  'table'  then  print(k) e
nd end