My apologies for the signature – corporate server must have appended it. Never seen that before. I may have to revert to an outside account. 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. I am going to down rev to 2.0.3 where this code “worked” previously; although I am now suspicious of my memory. Another thought is to try and trap the error with the pcall function or something like that. Thanks in advance and apologies for any additional signature information that may be appended by my company’s server. Ed From: luajit-bounce@xxxxxxxxxxxxx [mailto:luajit-bounce@xxxxxxxxxxxxx] On Behalf Of William Adams Sent: Thursday, October 9, 2014 5:10 PM To: luajit@xxxxxxxxxxxxx Subject: RE: LuaJIT2.1-alpha question Yor signature is off putting Sent from my Windows Phone ________________________________ From: Maynard, Ed<mailto:Ed.Maynard@xxxxxxxxxxxxxxxx> Sent: 10/9/2014 1:05 PM To: luajit@xxxxxxxxxxxxx<mailto:luajit@xxxxxxxxxxxxx> Subject: LuaJIT2.1-alpha question I have code that runs on 2.0.3 but under 2.1-a I get a redefine error for structs in my ffi.cdef call the second time I execute the lua package. First time through works great. Clearly something is being cached between those runs – how do I test and/or clear this info? Thanks in advance, Ed This message and any attachments may be a confidential attorney-client communication or otherwise be privileged and confidential. If you are not the intended recipient, any review, distribution or copying of this transmittal is prohibited. If you have received this transmittal in error, please reply by e-mail and delete this message and all attachments.