-bash$ lua Lua 5.2.0 Copyright (C) 1994-2011 Lua.org, PUC-Rio > t=require("tools"); p=t.inspecttab > a={[1]=true,[2]="alice",[3]=18} > p(_G) a table: 0x100109070 1 boolean: true 2 string: alice 3 number: 18 string table: 0x100102e80 sub function: 0x10001bde0 upper function: 0x10001bd20 len function: 0x10001c060 rep function: 0x10001cf80 find function: 0x10001e400 match function: 0x10001e3f0 char function: 0x10001c390 dump function: 0x10001c4f0 gmatch function: 0x10001c330 reverse function: 0x10001bc60 byte function: 0x10001c200 format function: 0x10001c660 gsub function: 0x10001da30 lower function: 0x10001c0a0 xpcall function: 0x1000169a0 package table: 0x100100ef0 path string: /usr/local/share/lua/5.2/?.lua;/usr/local/share/lua/5.2/?/init.lua;/usr/local/lib/lua/5.2/?.lua;/usr/local/lib/lua/5.2/?/init.lua;./?.lua searchers table: 0x100100cb0 1 function: 0x100100d30 2 function: 0x1001013e0 3 function: 0x100101410 4 function: 0x100101440 cpath string: /usr/local/lib/lua/5.2/?.so;/usr/local/lib/lua/5.2/loadall.so;./?.so preload table: 0x1001014d0 loadlib function: 0x10001fdb0 loaders table: 0x100100cb0 # done loaded table: 0x1001012c0 string table: 0x100102e80 # done debug table: 0x1001029f0 getupvalue function: 0x100018600 setuservalue function: 0x100018980 debug function: 0x1000193c0 getmetatable function: 0x100018bf0 setmetatable function: 0x100018610 setlocal function: 0x100018670 gethook function: 0x100019250 sethook function: 0x100018780 upvalueid function: 0x100018ae0 traceback function: 0x100018480 upvaluejoin function: 0x100018b30 getinfo function: 0x100018ed0 setupvalue function: 0x1000185d0 getuservalue function: 0x100019370 getregistry function: 0x100018400 getlocal function: 0x100018c30 package table: 0x100100ef0 # done _G table: 0x100100610 # done io table: 0x100101fa0 lines function: 0x10001a470 write function: 0x1000196b0 close function: 0x100019970 flush function: 0x100019f10 open function: 0x10001a2a0 output function: 0x10001a260 type function: 0x1000196e0 read function: 0x100019ea0 stderr file (0x7fff71042250) stdin file (0x7fff71042120) input function: 0x10001a280 stdout file (0x7fff710421b8) popen function: 0x100019f50 tmpfile function: 0x1000197e0 os table: 0x1001025c0 exit function: 0x10001b690 setlocale function: 0x10001b550 date function: 0x10001b810 getenv function: 0x10001b650 difftime function: 0x10001b780 remove function: 0x10001b600 time function: 0x10001b3e0 clock function: 0x10001bbc0 tmpname function: 0x10001b2a0 rename function: 0x10001b5b0 execute function: 0x10001b710 table table: 0x100101d20 maxn function: 0x10001ed20 pack function: 0x10001ec80 concat function: 0x10001ee40 insert function: 0x10001ebb0 sort function: 0x10001e8f0 remove function: 0x10001e980 unpack function: 0x10001ea70 math table: 0x100103810 log function: 0x10001af30 acos function: 0x10001b230 huge number: inf ldexp function: 0x10001afe0 pi number: 3.1415926535898 cos function: 0x10001b0f0 tanh function: 0x10001aad0 pow function: 0x10001ae60 deg function: 0x10001aa20 tan function: 0x10001aaa0 cosh function: 0x10001b120 sinh function: 0x10001ab60 random function: 0x10001ace0 randomseed function: 0x10001ab90 frexp function: 0x10001b030 ceil function: 0x10001b150 floor function: 0x10001acb0 rad function: 0x10001a9e0 abs function: 0x10001aa60 sqrt function: 0x10001ab00 modf function: 0x10001aeb0 asin function: 0x10001b200 min function: 0x10001ac30 max function: 0x10001abb0 fmod function: 0x10001b070 log10 function: 0x10001af00 atan2 function: 0x10001b1b0 exp function: 0x10001b0c0 sin function: 0x10001ab30 atan function: 0x10001b180 tools table: 0x100108de0 printf function: 0x1001072c0 inspecttab function: 0x1001088c0 coroutine table: 0x100101a20 resume function: 0x100018280 yield function: 0x100017ef0 status function: 0x100018100 wrap function: 0x100018380 create function: 0x100018320 running function: 0x100018250 bit32 table: 0x1001033b0 band function: 0x100017e80 extract function: 0x100017ce0 bor function: 0x100017da0 bnot function: 0x100017b50 arshift function: 0x100017a30 rshift function: 0x100017ab0 rrotate function: 0x100017980 replace function: 0x100017c60 lshift function: 0x100017b00 lrotate function: 0x1000179b0 btest function: 0x100017e50 bxor function: 0x100017d40 config string: /\n;\n?\n!\n-\n searchpath function: 0x10001fcf0 seeall function: 0x10001fc60 tostring function: 0x100016ac0 _VERSION string: Lua 5.2 os table: 0x1001025c0 # done unpack function: 0x10001ea70 require function: 0x100101580 bit32 table: 0x1001033b0 # done p function: 0x1001088c0 pairs function: 0x100017110 next function: 0x100017130 assert function: 0x100017660 rawlen function: 0x100016d80 ipairs function: 0x1000170f0 io table: 0x100101fa0 # done rawequal function: 0x100016de0 collectgarbage function: 0x100017570 load function: 0x100017190 module function: 0x100101530 rawset function: 0x100016cd0 math table: 0x100103810 # done pcall function: 0x100016f80 t table: 0x100108de0 # done type function: 0x100016a70 debug table: 0x1001029f0 # done getmetatable function: 0x100017430 select function: 0x100016bb0 table table: 0x100101d20 # done _G table: 0x100100610 # done rawget function: 0x100016d30 loadstring function: 0x100017190 print function: 0x100016e30 coroutine table: 0x100101a20 # done dofile function: 0x100017490 tonumber function: 0x1000176c0 setmetatable function: 0x100016b00 error function: 0x100017500 loadfile function: 0x100017380 >