Categories
Monkey Forums/Monkey Programming/Categories
| ||
Mark, How much work would it be to add Objective-C style categories to Monkey? Basically something like this (keywords are just a suggestion): I ask because this would be a nice roundabout way of extending parts of Mojo without having to hack or fork it. Specifically, it would be a way for me to add some field accessors to the Image class for MonkeyLua. :) Not sure how useful this would be for other developers, but it's still a cool feature to have. Edit: For non-Objective-C programmers: https://developer.apple.com/library/ios/#documentation/cocoa/conceptual/objectivec/chapters/occategories.html I believe they're similar to extension points in .NET |