cPlugin_NewLua: why is it Lua-exported?
#18
Why should a plugin need to know about its own object? We could make the API so that all functions work without knowing a single instance of a cPlugin. That would make the API a bit easier to grasp.

Internally, we could do that by defining our own global variable in the Lua environment and the API functions would read that variable if they needed the plugin object.
Reply
Thanks given by:


Messages In This Thread
cPlugin_NewLua: why is it Lua-exported? - by xoft - 06-06-2012, 12:14 AM
RE: cPlugin_NewLua: why is it Lua-exported? - by xoft - 01-10-2013, 08:07 PM



Users browsing this thread: 1 Guest(s)