*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
}}


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS