Mercurial Hosting > luan
diff core/src/luan/LuanMeta.java @ 427:dae264ad6a7b
fix LuanTable.put() to use metatables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 19:29:07 -0600 |
parents | 91af5337b9ae |
children | df95199ca4c0 |
line wrap: on
line diff
--- a/core/src/luan/LuanMeta.java Fri May 01 18:44:20 2015 -0600 +++ b/core/src/luan/LuanMeta.java Fri May 01 19:29:07 2015 -0600 @@ -53,11 +53,11 @@ public LuanTable newMetatable() { LuanTable mt = new LuanTable(); - mt.put( "__index", this ); - mt.put( "__pairs", this ); - mt.put( "__tostring", this ); + mt.rawPut( "__index", this ); + mt.rawPut( "__pairs", this ); + mt.rawPut( "__tostring", this ); if( canNewindex() ) - mt.put( "__newindex", this ); + mt.rawPut( "__newindex", this ); return mt; }