[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 22 Jun 2011 10:52:30 -0300
> On Wed, Jun 22, 2011 at 3:20 PM, Mike Pall <email@example.com> wrote:
> > not, if it's allocated externally. You cannot add an element or
> > increase the struct size without breaking the ABI.
> To be fair, Lua does not make guarantees about the ABI with new versions.
> But it is true that an API function would isolate the programmer from
> the actual mechanism; LuaJIT could provide it as well without having
> to expose internal details.
The advantage of exporting the structure is that the user may add her
own extra fields, if needed. (Are there real cases for this need?)