Mercurial Hosting > luan
comparison core/src/luan/modules/TableLuan.java @ 443:bf5e62a9090c
remove toBoolean() and to_boolean()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 May 2015 14:55:51 -0600 |
parents | 93e6e67768d7 |
children | 22bfd8a2eaee |
comparison
equal
deleted
inserted
replaced
442:75ccb4da803f | 443:bf5e62a9090c |
---|---|
64 }; | 64 }; |
65 } else { | 65 } else { |
66 lt = new LessThan() { | 66 lt = new LessThan() { |
67 public boolean isLessThan(Object o1,Object o2) { | 67 public boolean isLessThan(Object o1,Object o2) { |
68 try { | 68 try { |
69 return Luan.toBoolean(Luan.first(luan.call(comp,"comp-arg",new Object[]{o1,o2}))); | 69 return luan.checkBoolean(Luan.first(luan.call(comp,"comp-arg",new Object[]{o1,o2}))); |
70 } catch(LuanException e) { | 70 } catch(LuanException e) { |
71 throw new LuanRuntimeException(e); | 71 throw new LuanRuntimeException(e); |
72 } | 72 } |
73 } | 73 } |
74 }; | 74 }; |