[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: cpp binding example for lua4
- From: Haemish Graham <haemish@...>
- Date: Sat, 27 Sep 2003 11:55:52 +0100
Hi.
Porting Lua5 to PalmOS is proving more problematic then first
anticipated so I have decided to take a step back and look at Lua4 as a
possible solution (as it more or less just works on PalmOS). However
despite reading copius amounts of the lua archive and code examples I
seem to have failed to find a simple cpp binding example for Lua4. I
really like the metatables of Lua5, and tagmethods although simpler by
design seem to end up more complex in use, and I could do with some
pointers.
Does anyone have a simple example of binding a cpp class to Lua4,
similar to the example for Lua5
(http://lua-users.org/wiki/SimpleCppBinding). Google did throw up a
good resource on classes in Lua4
(http://lua-users.org/wiki/ClassesAndMethods) which was helpful in
understanding tag methods, but I am unsure how to register and poke the
up values of my class from C.
Any examples would be much appreciated. If anyone wants the source of
the Lua4 PalmOS port I am working from drop me an email.
Kind Regards.
-haemish