On Tue, Sep 1, 2009 at 1:14 PM, Jan Hudec<[email protected]> wrote: > > The OP does not seem to be. He says "like the example for Lua" and that shows > running lua code from vala.
Yes. And also calling Vala code from Lua. Or Python. Just to check if I'm on the right track: - just to run some python from Vala I can use Frederik's code from above - and to call Vala from Python, I have to, according: http://docs.python.org/extending/embedding.html#extending-embedded-python add to Frederik's code the definition of "Py_InitModule()", which in turn needs "PyMethodDef()" and "PyObject()" and if I don't have to return anything, that's all because PyMethodDef() could return NULL. Is this correct, so far? The trouble I'm having is to comprehend how to translate the "Extending Embedded Python" to Vala since it is in C. But if I understand correctly (from lua.vapi) it's just matter of adding the definitions to Frederik's code. _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
