comparison core/src/luan/impl/SetTableEntry.java @ 421:b31d614343e8

add Io.LuanString.text_writer(); improve java related errors; fix to_string;
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 May 2015 15:13:14 -0600
parents 8fbb961aabd5
children 23a93c118042
comparison
equal deleted inserted replaced
420:e9d4d5854e54 421:b31d614343e8
47 meta.__newindex(luan,table,key,value); 47 meta.__newindex(luan,table,key,value);
48 return; 48 return;
49 } 49 }
50 newindex(luan,h,key,value); 50 newindex(luan,h,key,value);
51 } 51 }
52 if( !JavaLuan.__newindex(luan,t,key,value) ) 52 if( t != null && luan.currentEnvironment().hasJava() )
53 JavaLuan.__newindex(luan,t,key,value);
54 else
53 throw luan.bit(se).exception( "attempt to index '"+tableExpr.se().text()+"' (a " + Luan.type(t) + " value)" ); 55 throw luan.bit(se).exception( "attempt to index '"+tableExpr.se().text()+"' (a " + Luan.type(t) + " value)" );
54 } 56 }
55 57
56 } 58 }