*Luaで良く作る関数 ~io編~ [#tfd3313e] --printf -[[printf>#printf]] &aname(printf); **printf [#g9826bb5] #sh(lua){{ -- いわゆるprintf。 function printf(...) local function wrapper(...) io.write(string.format(...)) end local status, result = pcall(wrapper, ...) if not status then error(result, 2) end end }}