Mercurial Hosting > luan
comparison src/luan/interp/SetTableEntry.java @ 60:a68ccb7aaa9c
implement setting java field values
git-svn-id: https://luan-java.googlecode.com/svn/trunk@61 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 07 Jan 2013 05:41:59 +0000 |
parents | 8ede219cd111 |
children | 6ca02b188dba |
comparison
equal
deleted
inserted
replaced
59:5c9cadd0acce | 60:a68ccb7aaa9c |
---|---|
38 throw new LuanException( luan, se, "attempt to index a " + Luan.type(t) + " value" ); | 38 throw new LuanException( luan, se, "attempt to index 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.call(fn,se,"__newindex",t,key,value); | 42 luan.call(fn,se,"__newindex",t,key,value); |
43 return; | |
43 } | 44 } |
44 newindex(luan,h,key,value); | 45 newindex(luan,h,key,value); |
45 } | 46 } |
46 | 47 |
47 } | 48 } |