lua-users home
lua-l archive

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


2017-04-28 16:38 GMT+02:00 Ryan Volz <iggyvolz@gmail.com>:

> Regarding: table is a standard library containing functions that involve
> sequences. Those functions cannot be called using object-oriented syntax.
>
> Sure you can - you just have to call setmetatable({__index=table},<your
> table>).  Doesn't work if you're using a custom metatable, but it works well
> for things like lists.

I decided not to delve deeper into coroutines, userdata, the API, metamethods,
the load command, and modules than the most superficial remarks about
their existence.

But maybe a few words here would still fit in with that policy. Thanks,

Dirk