diff core/src/luan/LuanMeta.java @ 428:df95199ca4c0

rename __newindex to __new_index
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 02 May 2015 20:10:31 -0600
parents dae264ad6a7b
children e3a6d9dbd694
line wrap: on
line diff
--- a/core/src/luan/LuanMeta.java	Fri May 01 19:29:07 2015 -0600
+++ b/core/src/luan/LuanMeta.java	Sat May 02 20:10:31 2015 -0600
@@ -41,7 +41,7 @@
 		return false;
 	}
 
-	public void __newindex(LuanState luan,LuanTable tbl,Object key,Object value) throws LuanException {
+	public void __new_index(LuanState luan,LuanTable tbl,Object key,Object value) throws LuanException {
 		throw new UnsupportedOperationException();
 	}
 
@@ -57,7 +57,7 @@
 		mt.rawPut( "__pairs", this );
 		mt.rawPut( "__tostring", this );
 		if( canNewindex() )
-			mt.rawPut( "__newindex", this );
+			mt.rawPut( "__new_index", this );
 		return mt;
 	}