Mercurial Hosting > luan
comparison src/luan/interp/SetLocalVar.java @ 32:c3eab5a3ce3c
implement closures
git-svn-id: https://luan-java.googlecode.com/svn/trunk@33 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 14 Dec 2012 05:40:35 +0000 |
parents | 5cf15507d77e |
children | 64ecb7a3aad7 |
comparison
equal
deleted
inserted
replaced
31:5cf15507d77e | 32:c3eab5a3ce3c |
---|---|
7 SetLocalVar(int index) { | 7 SetLocalVar(int index) { |
8 this.index = index; | 8 this.index = index; |
9 } | 9 } |
10 | 10 |
11 @Override public void set(LuaStateImpl lua,Object value) { | 11 @Override public void set(LuaStateImpl lua,Object value) { |
12 lua.stack()[index] = value; | 12 lua.stackSet( index, value ); |
13 } | 13 } |
14 } | 14 } |