lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Sat, Mar 17, 2012 at 12:42 PM, Flemming Madsen <lua@themadsens.dk> wrote:


Yes, right. Can be fixed with luaposix though:

getmetatable(io.stdin).getfd = function(s) return posix.fileno(s) end

Alternatively a patch to the lua core. Here is one here

/Flemming

Which of course should be:
  getmetatable(io.stdin).getfd = posix.fileno