Mercurial Hosting > luan
diff core/src/luan/impl/LeExpr.java @ 647:8e8c30b72e9b
move methods from LuanState to Luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 20:39:14 -0600 |
parents | cdc70de628b5 |
children |
line wrap: on
line diff
--- a/core/src/luan/impl/LeExpr.java Tue Mar 29 19:58:39 2016 -0600 +++ b/core/src/luan/impl/LeExpr.java Tue Mar 29 20:39:14 2016 -0600 @@ -28,12 +28,12 @@ String s2 = (String)o2; return s1.compareTo(s2) <= 0; } - LuanFunction fn = luan.getBinHandler("__le",o1,o2); + LuanFunction fn = Luan.getBinHandler("__le",o1,o2); if( fn != null ) - return luan.checkBoolean( Luan.first(fn.call(luan,new Object[]{o1,o2})) ); - fn = luan.getBinHandler("__lt",o1,o2); + return Luan.checkBoolean( Luan.first(fn.call(luan,new Object[]{o1,o2})) ); + fn = Luan.getBinHandler("__lt",o1,o2); if( fn != null ) - return !luan.checkBoolean( Luan.first(fn.call(luan,new Object[]{o2,o1})) ); + return !Luan.checkBoolean( Luan.first(fn.call(luan,new Object[]{o2,o1})) ); throw new LuanException( "attempt to compare " + Luan.type(o1) + " with " + Luan.type(o2) ); } }