lua-users home
lua-l archive

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

Thanks for both of your replies. I have to finish writing it today but I may switch to lanes at a later date. I wanted to use xmove as previously i found that was the only way to get a lua function copied from one state to another but I dont really need that :)


Mark Swinhoe

Asko Kauppi <>
Sent by:

01/07/2008 19:51
Please respond to
Lua list <>

Lua list <>
Re: lua_xmove between non related lua_State's

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
>> fine.
> 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.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify
This footnote also confirms that this email message has been checked for all known viruses.
Sony Computer Entertainment Europe Limited
Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom
Registered in England: 3277793

Please consider the environment before printing this e-mail