lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (beta-rc2) now available

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


> On Wed, Jun 22, 2011 at 3:20 PM, Mike Pall <mikelu-1106@mike.de> 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?)
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /