cPlugin_NewLua: why is it Lua-exported?
#23
That's the common misconception. "Object oriented" does not mean "has objects", it means "thought in objects". In this case, thinking means "do I really need an object only for the reason of calling a single function on it?" If your answer is "yes", you've been doing too much javaTongue And how much less is the proposed solution object-oriented? You're calling PluginManager's function; PluginManager should be the one who "glues" plugins together, possibly translating from one scripting language to another.

My point is, with the proposed changes to the Command API (Command API thoughts, thread https://forum.cuberite.org/showthread.php?tid=765 ) and the WebAdmin API (WebAdmin API thoughts, thread https://forum.cuberite.org/showthread.php?tid=766 ), calling a plugin's function is the only API left for a cPlugin class, if we get rid of it, the whole class (and the entire virtual_method_hooks machinery with its false positives, such as Lua__cEntity) can finally be gone. Isn't that worth fighting for?
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 - 02-01-2013, 05:37 PM



Users browsing this thread: 1 Guest(s)