lua-users home
lua-l archive

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


On 24/10/2012, at 10:43 PM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:

> I think this could combine very well with this message;
> http://lua-users.org/lists/lua-l/2012-10/msg00122.html 
> 
> If the "typical" library by Rob Hoelz can be combined with my "typex"
> library, then that could pretty much fill this gap.

I tried to get typical's functionality by looking for __type, but I forgot to call it if it's a function.  Your typex is harder, since you can't access the registry from Lua.  I could pcall(require) your version, and act appropriately if it's available.

> A preprocessor that can be run on the command line (similar to LuaCov usage)
> would be nice then to prevent extra manual steps in the process

It's not a preprocessor in the sense that Steve suggested, but you do just go "lua -largcheck file.lua" like you do with luacov and luatrace.