Mercurial Hosting > luan
diff core/src/luan/LuanBit.java @ 423:1eafb11a150d
remove Luan.repr()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 16:30:28 -0600 |
parents | b31d614343e8 |
children | e3a6d9dbd694 |
line wrap: on
line diff
--- a/core/src/luan/LuanBit.java Fri May 01 16:13:52 2015 -0600 +++ b/core/src/luan/LuanBit.java Fri May 01 16:30:28 2015 -0600 @@ -104,20 +104,6 @@ return Luan.toString(obj); } - public String repr(Object obj) throws LuanException { - if( obj == null ) - return "nil"; - if( obj instanceof Boolean ) - return Luan.toString((Boolean)obj); - if( obj instanceof Number ) - return Luan.toString((Number)obj); - if( obj instanceof String ) - return "\"" + Luan.stringEncode((String)obj) + "\""; - if( obj instanceof LuanRepr ) - return ((LuanRepr)obj).repr(luan); - throw exception( "value '" + obj + "' doesn't support repr()" ); - } - public LuanFunction getHandlerFunction(String op,LuanTable t) throws LuanException { Object f = t.getHandler(op); if( f == null )