Mercurial Hosting > luan
view core/src/luan/impl/GetUpVar.java @ 580:1e69d9c21461
add Table.clear();
add Http.response.reset();
fix http/run;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Jul 2015 14:56:41 -0600 |
parents | b48cfa14ba60 |
children | 0742ac78fa69 |
line wrap: on
line source
package luan.impl; import luan.LuanElement; final class GetUpVar extends CodeImpl implements Expr { private final int index; GetUpVar(LuanElement se,int index) { super(se); this.index = index; } @Override public Object eval(LuanStateImpl luan) { return luan.closure().upValues()[index].get(); } }