lua-users home
lua-l archive

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


Tomas,

The later works great.  Thank you.

Mike

> Lobject = { callback = function (self...) .... end}
>
> PassObjectCallbacktoC (Lobject.callback) -- note Lobject:callback
cannot be passed.
	You'll have to pass the object and its method:

PassObjectCallbacktoC (Lobject, Lobject.callback)

	Or create a closure:

PassObjectCallbacktoC (function () return Lobject:callback() end)

	Got it?
		Tomas

End of Lua Digest, Vol 98, Issue 2
**********************************