[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: luaL_callmeta()
- From: Tim Hill <drtimhill@...>
- Date: Fri, 12 Jun 2015 12:14:52 -0700
What is the reason luaL_callmeta() only allows one return value? I’m guessing it’s because it’s primarily targetted for metamethods like __add(). However, it would be great if there was a luaL_callmetax() that had an explicit argument for the number of return values (or LUA_MULTRET).
Not academic: All my projects to date have needed this (of course I’ve created my own, but it’s surprising that it’s not there for things like __pairs() etc).
—Tim