[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Making luaconf.h settings available in Lua
- From: Reuben Thomas <rrt@...>
- Date: Sat, 26 Feb 2011 22:45:34 +0000
It would be great if the settings from luaconf.h were available in
Lua. For example, one could write:
-- like Perl's File::Spec::catfile
function catfile (...)
return table.concat ({...}, LUA_DIRSEP)
end
Of course, it would be easy to write a luaconf Lua binding, but it
seems an obvious thing for Lua itself to do.
--
http://rrt.sc3d.org