lua-users home
lua-l archive

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


> We're a database embedded into Lua, and struggling with coercing Lua
> type system into the data model we adopted.

I am not sure I understood your problem. You say "the data model we
adopted." So, either you can change that data model to better match
Lua values, or else you explicitly want that specific data model for
whatever reason, and then you could simply outlaw Lua values that
do not fit your model (e.g., raise an error if a function returns more
than one value or if a table mixes numeric and non-numeric keys).

-- Roberto