I have been playing a bit with Vala and implemented a VAPI interface for LUA. This way its possible to embed a LuaVM inside a Vala program and make the vala code interact with the lua code and viceversa. The .vapi file and the .vala test are attached. Have fun :) and feel free to import it to the repositori. BTW. I have a question..how should a function be named? all lua ones have no underscores..in this way "lua_pushcfunction" which imho should be renamed to push_cfunction() instead of pushcfunction() which is unreadable to me. I have added the example into the wiki. http://live.gnome.org/Vala/LuaSample Does I have to prefix all push* definitions with a cname attribute? or there's a simple way for doing it for all? Greetz --pancake
Attachment:
test.vala
Description: Binary data
Attachment:
lua.vapi
Description: Binary data