Categories
- Blog (104)
- Lua (13)
- Miscellaneous (48)
- Photos (6)
- Programming (33)
- Python (15)
- Sample (3)
- Web Design (3)
- Writing (2)
- Portfolio (40)
- Snippets (28)
- Blog (104)
Tag Archives: introspection
See.lua – Documentation
See.lua – A Lua introspection library
> see(string) .byte(?) .char(?) .dump(?) .find(?) .format(?) .gfind(?) .gmatch(?) .gsub(?) .join(self, table, ...) .len(?) .lower(?) .match(?) .rep(?) .reverse(?) .sub(?) .upper(?)
Lua is a wonderful little language that lets you do…
Posted in Blog, Lua, Programming, Snippets
Tagged documentation, introspection, Lua, see
Leave a comment
Lua – Get a table of function arguments
The lua standard libraries do not provide anything that helps you get the table of arguments for a given function. This can be accomplished by directly introspecting the bytecode of the function. The following snippet generates a function get_args that…
Posted in Blog, Lua, Programming, Snippets
Tagged arguments, debug, get_args, introspection, Lua, snippet, table
Leave a comment