[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Problems with luaL_checkuserdata
- From: "Tom Miles" <Tom@...>
- Date: Tue, 4 Dec 2007 16:30:45 -0000
Well that would do it.
It's quite embarrasing to know that I spent a days work on a complete
misunderstanding :(
> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br
> [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Rici Lake
> Sent: 04 December 2007 16:12
> To: Lua list
> Subject: Re: Problems with luaL_checkuserdata
>
>
> On 4-Dec-07, at 10:15 AM, Tom Miles wrote:
>
> > Hi there,
> >
> > I've been trying to add some form of type safety with my use of
> > representing pointers in my C++ app with lightuserdata, using
> > lua_newmetatable, and luaL_checkuserdata etc. This works in most
> > instances, but I have an odd situation that I don't know what to do
> > about.
>
> Light userdata don't have individual metatables. So I don't
> see how you can get that to work with luaL_checkuserdata,
>
> You should probably use full userdata, particularly if type
> safety is important.
>
>
----------------------------------------------------------------------------
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.