Mercurial Hosting > luan
diff core/src/luan/LuanState.java @ 419:8fbb961aabd5
improve repr() to check metamethod recursively
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 30 Apr 2015 23:15:40 -0600 |
parents | abce9b0041b0 |
children | 1eafb11a150d |
line wrap: on
line diff
--- a/core/src/luan/LuanState.java Thu Apr 30 21:52:20 2015 -0600 +++ b/core/src/luan/LuanState.java Thu Apr 30 23:15:40 2015 -0600 @@ -46,14 +46,9 @@ return new LuanBit(this,el); } - public final static Object getHandler(String op,LuanTable table) { - LuanTable t = table.getMetatable(); - return t==null ? null : t.get(op); - } - // convenience methods - private final LuanBit JAVA = bit(LuanElement.JAVA); + final LuanBit JAVA = bit(LuanElement.JAVA); public LuanException exception(Object msg) { return JAVA.exception(msg);