comparison core/src/luan/impl/SetTableEntry.java @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents b48cfa14ba60
children e3fb9768dbb3
comparison
equal deleted inserted replaced
502:d3183a330ff5 503:92c3d22745b8
27 if( t instanceof LuanTable ) { 27 if( t instanceof LuanTable ) {
28 LuanTable tbl = (LuanTable)t; 28 LuanTable tbl = (LuanTable)t;
29 tbl.put(luan,key,value); 29 tbl.put(luan,key,value);
30 return; 30 return;
31 } 31 }
32 if( t != null && luan.currentEnvironment().hasJava() ) 32 if( t != null && luan.hasJava() )
33 JavaLuan.__new_index(luan,t,key,value); 33 JavaLuan.__new_index(luan,t,key,value);
34 else 34 else
35 throw luan.bit(el).exception( "attempt to index '"+tableExpr.el().text()+"' (a " + Luan.type(t) + " value)" ); 35 throw luan.bit(el).exception( "attempt to index '"+tableExpr.el().text()+"' (a " + Luan.type(t) + " value)" );
36 } 36 }
37 37