Mercurial Hosting > luan
diff src/luan/interp/ConstExpr.java @ 108:3c404a296995
make Package module more standard;
return _ENV by default;
add "import" statement;
git-svn-id: https://luan-java.googlecode.com/svn/trunk@109 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 03:21:54 +0000 |
parents | 8ede219cd111 |
children | 14281d5bd36f |
line wrap: on
line diff
--- a/src/luan/interp/ConstExpr.java Mon May 19 09:17:57 2014 +0000 +++ b/src/luan/interp/ConstExpr.java Fri May 23 03:21:54 2014 +0000 @@ -3,18 +3,19 @@ import luan.LuanSource; -final class ConstExpr implements Expr { +final class ConstExpr extends CodeImpl implements Expr { private final Object obj; ConstExpr(Object obj) { + this(null,obj); + } + + ConstExpr(LuanSource.Element se,Object obj) { + super(se); this.obj = obj; } @Override public Object eval(LuanStateImpl luan) { return obj; } - - @Override public final LuanSource.Element se() { - return null; - } }