Poll: Change the API?
You do not have permission to vote in this poll.
Yes, break all the plugins
85.71%
6 85.71%
No, keep it as is
14.29%
1 14.29%
Total 7 vote(s) 100%
* You voted for this item. [Show Results]

API change in hook-adding
#12
I don't like polluting the global namespace so much. The hooks are used so rarely that it's not worth the few saved keystrokes.

What is more intriguing is (yet another) function signature:
cPluginManager.AddHook(HOOK_TYPE);  -- CallbackFunction is assumed to be named the same as in the old API
I'm still not sure, it'd make coding easier, but it's not good for maintenance, the line doesn't say anything about the function that will be called, it'd be confusing to the beginners.
Reply
Thanks given by:


Messages In This Thread
API change in hook-adding - by xoft - 08-21-2013, 11:00 PM
RE: API change in hook-adding - by NiLSPACE - 08-21-2013, 11:29 PM
RE: API change in hook-adding - by FakeTruth - 08-21-2013, 11:52 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:27 AM
RE: API change in hook-adding - by FakeTruth - 08-22-2013, 12:30 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:31 AM
RE: API change in hook-adding - by bearbin - 08-22-2013, 12:34 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:37 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 05:36 AM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 05:51 AM
RE: API change in hook-adding - by bearbin - 08-22-2013, 05:54 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 05:54 AM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 08:09 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 09:42 PM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 11:27 PM
RE: API change in hook-adding - by bearbin - 08-22-2013, 11:33 PM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 11:41 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 11:43 PM
RE: API change in hook-adding - by xoft - 08-23-2013, 04:27 AM
RE: API change in hook-adding - by tonibm19 - 10-20-2013, 11:26 PM
RE: API change in hook-adding - by tigerw - 10-21-2013, 03:37 AM
RE: API change in hook-adding - by bearbin - 10-21-2013, 05:30 AM
RE: API change in hook-adding - by xoft - 10-21-2013, 07:19 AM



Users browsing this thread: 1 Guest(s)