Mercurial Hosting > luan
diff core/src/luan/LuanMeta.java @ 429:e3a6d9dbd694
rename __tostring to __to_string
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 May 2015 20:13:24 -0600 |
parents | df95199ca4c0 |
children | f28320fd671d |
line wrap: on
line diff
--- a/core/src/luan/LuanMeta.java Sat May 02 20:10:31 2015 -0600 +++ b/core/src/luan/LuanMeta.java Sat May 02 20:13:24 2015 -0600 @@ -47,7 +47,7 @@ protected abstract String type(LuanTable tbl); - public String __tostring(LuanState luan,LuanTable tbl) throws LuanException { + public String __to_string(LuanState luan,LuanTable tbl) throws LuanException { return type(tbl) + "-" + tbl; } @@ -55,7 +55,7 @@ LuanTable mt = new LuanTable(); mt.rawPut( "__index", this ); mt.rawPut( "__pairs", this ); - mt.rawPut( "__tostring", this ); + mt.rawPut( "__to_string", this ); if( canNewindex() ) mt.rawPut( "__new_index", this ); return mt;