Re: LuaJIT2.1-alpha question

  • From: Geoff Leyland <geoff_leyland@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 10 Oct 2014 12:28:49 +1300

On 10/10/2014, at 12:18 pm, Maynard, Ed <Ed.Maynard@xxxxxxxxxxxxxxxx> wrote:

> In the meantime, it appears that this is a well-known issue (redefinition of 
> C structures) without a built-in solution other than creating a new instance 
> of Lua (akin to exit and restart). It also appears that there is no ready way 
> to evaluate whether a variable has been declared or not – no table to look 
> through.

Can you just stick the cdefs into a separate file and require it?  If C 
structure definitions are being remembered, surely package.loaded is being 
remembered as well?

Other related posts: