[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Try Lua!
- From: Peter Cawley <lua@...>
- Date: Sun, 21 Jun 2009 00:57:05 +0100
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