lua-users home
lua-l archive

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

I will be having code that does this right, popping from one stack and pushing to another. In fact, Lanes sources must already have that code somewhere; maybe buried into the gluax part, though.

If you're not in a hurry, Lanes 2008 will have it.


Luiz Henrique de Figueiredo kirjoitti 1.7.2008 kello 20:05:

However I've tried it out with unrelated lua_State's and it seems to work

Like you say, it seems to work fine. But when garbage collection kicks in, you will probably have dangling pointers in the target state. Not good...
Also, if you move a string across states and the string already exists
in the target state, you can see string equality failing.