comparison src/luan/modules/Rpc.luan @ 1260:4b5b84853f6f

replace Table.as_table with Luan.to_table
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Sep 2018 22:32:34 -0600
parents e8020216dee7
children 198d6af7330a
comparison
equal deleted inserted replaced
1259:e8020216dee7 1260:4b5b84853f6f
52 end 52 end
53 return unpack(list) 53 return unpack(list)
54 end 54 end
55 55
56 local function luan_args(list,binary_in) 56 local function luan_args(list,binary_in)
57 list = LuanJava.table(list) 57 list = to_luan(list)
58 for i,v in ipairs(list) do
59 list[i] = to_luan(v)
60 end
61 if binary_in ~= nil then 58 if binary_in ~= nil then
62 local i_in = list[#list] 59 local i_in = list[#list]
63 list[#list] = nil 60 list[#list] = nil
64 local type = list[i_in] 61 local type = list[i_in]
65 if type == "binary" then 62 if type == "binary" then