Re: Why is there no API to realloc a full userdata?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Why is there no API to realloc a full userdata?
- From: Rob Kendrick <rjek@...>
- Date: 2012年6月12日 08:03:24 +0100
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.