lua-users home
lua-l archive

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


On Mon, Jun 11, 2012 at 11:45:27PM +0100, Reuben Thomas wrote:
> Why is there no C API to realloc a full userdata? Is it just not
> common enough a need?

My initial thought is that there would have to be an extra layer of
indirection between userdata and actual memory: realloc can move the
data, and other parts of Lua may hold references, etc.

B.