lua-users home
lua-l archive

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


> As I replied on IRC; I think that lexically scoped metatables for the
> base types are a much better idea.
> I even coded up a proof of concept:
> https://gist.github.com/daurnimator/dedd793e6f9b1f8d6b0c
> (obviously if such a feature made it into PUC-lua, the `debug` calls
> would be unnessecary)

Do you have an idea about how to implement it efficiently and correctly?

-- Roberto