Quote:
Originally Posted by Twinny
GKs mud functions are hard coded into the NPC-Server 
|
Those are global functions pointing to object functions, obviously you're not understanding dynamic globals would do the exact same thing.
Quote:
Originally Posted by Twinny
Nothing stopping you from doing this with classes. It can be organized in exactly the same way  .
|
How many times do I have to say it? Classes are unnecessary for a small amount of functions, especially when I don't want them added to the function/variable list for the object.
Quote:
Originally Posted by Twinny
And you're right, gscript is not like other languages which makes it confusing when you bring up OOP programming concepts like, "encapsulation" and even quote them then try to relate it to different concepts  .
|
Same with your private variables. I explained my reason for practicing Encapsulation in an earlier post.
Quote:
Originally Posted by Twinny
Pretty sure the burden is on you to prove why these updates are necessary: not the other way around.
|
I do not think so. The 'update' is an addition of one object to the function look up, something so simple is easy to add (or should be) and would require no/minimal effort so there should really be no reason NOT to do it.
Please tell me why GK is allowed to have global functions pointing to object functions yet we're not? When they're certainly possible dynamically as Stefan has said. I'm going to be honest and say absolutely nothing will convince me why Global functions shouldn't be allowed until this is explained.