Mercurial Hosting > luan
diff src/luan/modules/BasicLuan.java @ 1334:c88b486a9511
make some Luan methods static
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Feb 2019 22:53:57 -0700 |
parents | 25746915a241 |
children | e0cf0d108a77 |
line wrap: on
line diff
--- a/src/luan/modules/BasicLuan.java Tue Feb 12 22:33:40 2019 -0700 +++ b/src/luan/modules/BasicLuan.java Tue Feb 12 22:53:57 2019 -0700 @@ -103,12 +103,12 @@ throw new LuanException( "bad argument #1 to 'raw_len' (table or string expected)" ); } - public static String to_string(Luan luan,Object v) throws LuanException { - return luan.toString(v); + public static String to_string(Object v) throws LuanException { + return Luan.luanToString(v); } public static LuanTable new_error(Luan luan,Object msg) throws LuanException { - String s = luan.toString(msg); + String s = Luan.luanToString(msg); LuanTable tbl = new LuanException(s).table(luan); tbl.rawPut( "message", msg ); return tbl;