Mercurial Hosting > luan
view core/src/luan/impl/GetUpVar.java @ 383:4118eb51c816 0.4
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 22 Apr 2015 20:46:59 -0600 |
parents | 3dcb0f9bee82 |
children | b48cfa14ba60 |
line wrap: on
line source
package luan.impl; import luan.LuanSource; final class GetUpVar extends CodeImpl implements Expr { private final int index; GetUpVar(LuanSource.Element se,int index) { super(se); this.index = index; } @Override public Object eval(LuanStateImpl luan) { return luan.closure().upValues()[index].get(); } }