Make pairs(df.type) return class methods

develop
lethosor 2020-04-06 19:12:53 -04:00
parent d664681ea8
commit f83fee86de
2 changed files with 5 additions and 2 deletions

@ -42,6 +42,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Fixes
- `tweak` embark-profile-name: fixed handling of the native shift+space key
## Lua
- ``pairs()`` now returns available class methods for DF types
# 0.47.04-beta1
## Fixes

@ -1608,8 +1608,8 @@ static void RenderType(lua_State *state, compound_identity *node)
lua_dup(state);
lua_setfield(state, ix_meta, "__index");
// pairs table
lua_newtable(state);
// pairs table - reuse index table
lua_dup(state);
int ptable = base+4;
lua_pushvalue(state, ptable);