diff src/luan/modules/TableLuan.java @ 1095:2443152dc2f1

add Luan.hash_code() and Table.hash_value()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 21 Feb 2017 20:27:17 -0700
parents 6b8ea0a9b7c9
children ad6b3b9fef40
line wrap: on
line diff
--- a/src/luan/modules/TableLuan.java	Tue Jan 24 14:14:43 2017 -0700
+++ b/src/luan/modules/TableLuan.java	Tue Feb 21 20:27:17 2017 -0700
@@ -112,4 +112,8 @@
 		tbl.rawClear();
 	}
 
+	public static int hash_value(LuanTable tbl) throws LuanException {
+		return tbl.hashValue();
+	}
+
 }