diff core/src/luan/LuanMeta.java @ 430:f28320fd671d

fix LuanTable.toString() to use metatables
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 02 May 2015 20:35:26 -0600
parents e3a6d9dbd694
children d9df6d6cb927
line wrap: on
line diff
--- a/core/src/luan/LuanMeta.java	Sat May 02 20:13:24 2015 -0600
+++ b/core/src/luan/LuanMeta.java	Sat May 02 20:35:26 2015 -0600
@@ -48,7 +48,7 @@
 	protected abstract String type(LuanTable tbl);
 
 	public String __to_string(LuanState luan,LuanTable tbl) throws LuanException {
-		return type(tbl) + "-" + tbl;
+		return type(tbl) + "-" + tbl.rawToString();
 	}
 
 	public LuanTable newMetatable() {