Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Dominique Dumont
October 18, 2004, 8:30 pm
rate this thread
For a project, I've heavily modified Class::MethodMaker to ad the
possibility to query an object for the methods created by
For this project, I also used Class-Methodmaker to create a tree where
each node or leaf is an object. So I've also added the possibility to
navigate up the tree of objects with a special "parent" method added
Thus, the modified version enables the user to navigate up or down a
tree (or directed graph) using introspection (to go down) and the
"parent" method to go up.
Unfortunately, these modifications were not accepted by
Class::MethodMaker's author since they did not fit his own vision of
his module (fair enough).
I've also looked at Class::MakeMethod, but this module is way too
complex to add these navigations possibility. Furthermore, the code
generation trick used by Class::MakeMethod (and Class::MethodMaker >
v2.x) make programs very hard to debug, so I'd rather avoid them.
So I aim to:
- fork Class-Methodmaker as of version 1.08
- remove most of the fancy methods and keep only scalar, array and
hash accessors (with their tied and objects variants)
- provide the introspection and "parent" method generation
- provide a more consistent API (probably close to Class::MakeMethods)
Last but not least, I'm not very satisfied with the module name I
proposed in the subject of this article. Does anyone have a better
Are other people interested by this project ?
As always, comments are welcome.
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner