diff core/src/luan/impl/SetTableEntry.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 b48cfa14ba60
line wrap: on
line diff
--- a/core/src/luan/impl/SetTableEntry.java	Fri May 01 19:29:07 2015 -0600
+++ b/core/src/luan/impl/SetTableEntry.java	Sat May 02 20:10:31 2015 -0600
@@ -20,17 +20,17 @@
 	}
 
 	@Override public void set(LuanStateImpl luan,Object value) throws LuanException {
-		newindex( luan, tableExpr.eval(luan), keyExpr.eval(luan), value );
+		newIndex( luan, tableExpr.eval(luan), keyExpr.eval(luan), value );
 	}
 
-	private void newindex(LuanStateImpl luan,Object t,Object key,Object value) throws LuanException {
+	private void newIndex(LuanStateImpl luan,Object t,Object key,Object value) throws LuanException {
 		if( t instanceof LuanTable ) {
 			LuanTable tbl = (LuanTable)t;
 			tbl.put(luan,key,value);
 			return;
 		}
 		if( t != null && luan.currentEnvironment().hasJava() )
-			JavaLuan.__newindex(luan,t,key,value);
+			JavaLuan.__new_index(luan,t,key,value);
 		else
 			throw luan.bit(se).exception( "attempt to index '"+tableExpr.se().text()+"' (a " + Luan.type(t) + " value)" );
 	}