lua-users home
lua-l archive

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


I have some code in C++ that takes a pointer and sends it to lua as a
full userdata.  Both key and v.key are userdata sent to lua in this way.

> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br 
> [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of 
> Matt Campbell
> Sent: 25 January 2008 15:54
> To: Lua list
> Subject: Re: Hashing userdata
> 
> In your example, do "key" and "v.key" refer to the same Lua 
> object, or merely to the same C++ object?  That is, did you 
> call a C++ function which returned a Lua wrapper for that 
> object, and use that same wrapper in both places?  Or did you 
> use two different Lua wrappers, e.g. the return values from 
> two different function calls?
> 
> Matt
> 


 
---------------------------------------------------------------------------- 
         DISCLAIMER 
This email is sent by The Creative Assembly Limited company No. 03425917, registered in England &Wales registered office 27 Great West Road, Middlesex, TW8 9BW, England. The contents of this e-mail and any attachments are confidential to the intended recipient and may also be legally privileged. Unless you are the named addressee (or authorised to receive for the addressee) of this email you may not copy, disclose or distribute it to anyone else. If you have received this email in error, please notify us immediately by e-mail on postmaster@creative-assembly.co.uk and then delete the email and any copies. The Creative Assembly Limited have made all reasonable efforts to ensure that this e-mail and any attached documents or software are free from software viruses, but it is the recipient's responsibility to confirm this.