2014-09-19 20:44 GMT+04:00 lex pops <lexpops12@xxxxxxxxx>: > Your example seems particularly contrived. Why not still use ffi.new() > and have your C function 'fill up' the struct? > The example _is_ contrived. However the existence of a workaround doesn't justify nor explain the behaviour itself, does it? The question raised is why it has to work this way and should it stay so. You don't seem to know the answer either, so welcome, let's wait until someone shed the light or Mike confirms that it just happened to be so, without any particular reason. Or until the thread just fade out :) -- Tomash Brechko