Click here to get back home

RFC: new module Class::MakeIntrospecMethods

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
RFC: new module Class::MakeIntrospecMethods Dominique Dumont 10-18-2004
Posted by Dominique Dumont on October 18, 2004, 4:30 pm
Please log in for more thread options

Hello

For a project, I've heavily modified Class::MethodMaker to ad the
possibility to query an object for the methods created by
Class-Methodmaker.

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
by Class-Methodmaker.

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
idea ?

Are other people interested by this project ?

As always, comments are welcome.

Cheers

--
Dominique Dumont
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner


Similar ThreadsPosted
[ANNOUNCE] New module Class::IntrospectionMethods December 6, 2004, 2:12 pm
[RFC]Class::Lazy - Yet another lazy object construction module July 30, 2007, 4:42 am
Class::DBI::Schema2Code V 1.01 July 29, 2004, 7:14 am
Class::Tree V 1.24 July 29, 2004, 7:15 am
[RFC] Class::DataStore May 13, 2005, 2:45 pm
Perl Class::Struct October 13, 2005, 3:18 am
A doubt in using Class::Struct October 5, 2006, 2:33 pm
Class::MethodMaker v2 syntax help requested February 7, 2005, 9:33 pm
Namespace for MMS Parser class and a request for help August 13, 2005, 8:43 pm
Class::Std causing compilation errors November 24, 2007, 5:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap