pioneerspacesim/pioneer — pull request #1301 by robn (2012-06-23 06:01:33+00:00)
Title: Lua tweaks

Merge after #1297.

* Default `__tostring` metamethod for LuaObjects that includes the type. Easier debugging.

* Remove the table test in `dispatch_index`. The earliest LuaObject had a metatable on the method table, but this was wrong and has long since been removed. This code was leftover from that and isn't needed.

* With the table test gone, typeless objects can now be recognised simply by being a table, so remove the flag.

* Remove the `no_methods` thing if no methods are supplied for a new class. If there's no methods then just don't add any!