[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Replacement for unlocked refs?
- From: "Peter Loveday" <peter@<a href="/cgi-bin/echo.cgi?eyeonline.com">...</a>>
- Date: Sat, 2 Feb 2002 08:19:21 +1030
> How do you pass your userdata object into Lua calls? That is, say I
> have C++ code that wants to call a function like:
> int doSomething(MyObject* obj);
Yep, in my case the number of calls like this is relatively minimal. I
do indeed just push a newuserdatabox() every time.
I haven't found this to be a problem for what I'm doing, but I can see
that it could become prohibitive in other applications.
Love, Light and Peace,
- Peter Loveday