comparison core/src/luan/impl/SetUpVar.java @ 171:3dcb0f9bee82

add core component git-svn-id: https://luan-java.googlecode.com/svn/trunk@172 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 22 Jun 2014 05:41:22 +0000
parents src/luan/impl/SetUpVar.java@4eaee12f6c65
children
comparison
equal deleted inserted replaced
170:7c792a328a83 171:3dcb0f9bee82
1 package luan.impl;
2
3
4 final class SetUpVar implements Settable {
5 private final int index;
6
7 SetUpVar(int index) {
8 this.index = index;
9 }
10
11 @Override public void set(LuanStateImpl luan,Object value) {
12 luan.closure().upValues()[index].set(value);
13 }
14 }