Mercurial Hosting > luan
comparison core/src/luan/impl/SetTableEntry.java @ 186:cf939124461a
don't import modules by default
git-svn-id: https://luan-java.googlecode.com/svn/trunk@187 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 26 Jun 2014 00:36:50 +0000 |
parents | 3dcb0f9bee82 |
children | b76fcb72d97d |
comparison
equal
deleted
inserted
replaced
185:5f50dba8ac7d | 186:cf939124461a |
---|---|
33 return; | 33 return; |
34 table.put(key,old); | 34 table.put(key,old); |
35 } else { | 35 } else { |
36 h = luan.getHandler("__newindex",t); | 36 h = luan.getHandler("__newindex",t); |
37 if( h==null ) | 37 if( h==null ) |
38 throw luan.bit(se).exception( "attempt to index a " + Luan.type(t) + " value" ); | 38 throw luan.bit(se).exception( "attempt to index '"+tableExpr.se().text()+"' (a " + Luan.type(t) + " value)" ); |
39 } | 39 } |
40 if( h instanceof LuanFunction ) { | 40 if( h instanceof LuanFunction ) { |
41 LuanFunction fn = (LuanFunction)h; | 41 LuanFunction fn = (LuanFunction)h; |
42 luan.bit(se).call(fn,"__newindex",new Object[]{t,key,value}); | 42 luan.bit(se).call(fn,"__newindex",new Object[]{t,key,value}); |
43 return; | 43 return; |