lua-users home
lua-l archive

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


On Tue, Sep 13, 2011 at 8:32 PM, Tim Caswell <tim@creationix.com> wrote:
> And I get the error: cannot convert 'string' to 'char *'

Given that Lua strings are immutable, I'd guess that either you should
change your type signatures to so that the cast becomes an implicit
'string' to 'const char*', or use an explicit call to the ffi.cast
function.