lua-users home
lua-l archive

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


On Fri, Jan 29, 2021 at 12:08 AM Gé Weijers <ge@weijers.org> wrote:

> The buffers work fine if you follow the rules.

The problem with the rules is that they are lost even on experienced
users of the Lua's C API (compare [2] and [3]). Some of them can be
adamant that the rules (with all their implications) are wrong even
after the rules were cited to them, with a detailed explanation why
[1].

Ultimately, as Roberto confirms, the buffers rely on no internal magic
and something similar can be implemented externally.

Cheers,
V.

[1] http://lua-users.org/lists/lua-l/2017-11/msg00005.html

[2] http://lua-users.org/lists/lua-l/2017-11/msg00013.html

[3] http://lua-users.org/lists/lua-l/2020-12/msg00168.html