comparison core/src/luan/impl/LtExpr.java @ 460:b48cfa14ba60

improve stack trace
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 06 May 2015 14:32:29 -0600
parents 3dcb0f9bee82
children 4723d22062ce
comparison
equal deleted inserted replaced
459:30544d1a9cbf 460:b48cfa14ba60
1 package luan.impl; 1 package luan.impl;
2 2
3 import luan.Luan; 3 import luan.Luan;
4 import luan.LuanFunction; 4 import luan.LuanFunction;
5 import luan.LuanException; 5 import luan.LuanException;
6 import luan.LuanSource; 6 import luan.LuanElement;
7 7
8 8
9 final class LtExpr extends BinaryOpExpr { 9 final class LtExpr extends BinaryOpExpr {
10 10
11 LtExpr(LuanSource.Element se,Expr op1,Expr op2) { 11 LtExpr(LuanElement el,Expr op1,Expr op2) {
12 super(se,op1,op2); 12 super(el,op1,op2);
13 } 13 }
14 14
15 @Override public Object eval(LuanStateImpl luan) throws LuanException { 15 @Override public Object eval(LuanStateImpl luan) throws LuanException {
16 Object o1 = op1.eval(luan); 16 Object o1 = op1.eval(luan);
17 Object o2 = op2.eval(luan); 17 Object o2 = op2.eval(luan);
18 return luan.bit(se).isLessThan(o1,o2); 18 return luan.bit(el).isLessThan(o1,o2);
19 } 19 }
20 } 20 }