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 :)

Thanks,

Mark Swinhoe

Asko Kauppi <askok@dnainternet.net>
Sent by: lua-bounces@bazar2.conectiva.com.br

01/07/2008 19:51
Please respond to
Lua list <lua@bazar2.conectiva.com.br>

To
Lua list <lua@bazar2.conectiva.com.br>
cc
Subject
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.

-asko


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 postmaster@scee.net
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
**********************************************************************

P
Please consider the environment before printing this e-mail