Click here to get back home

[ANNOUNCE] New module Class::IntrospectionMethods

 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
[ANNOUNCE] New module Class::IntrospectionMethods Dominique Dumont 12-06-2004
Posted by Dominique Dumont on December 6, 2004, 2:12 pm
Please log in for more thread options


Hello

I've uploaded to CPAN a brand new perl package which provides
Class::IntrospectionMethods. A module to create methods with
introspection feature.

In other words, this module provides:

- A way to set up a lot of get/set method. These get/set methods can
access plain scalars, array, hash. These scalar, hash or array can
be tied (See perltie) with classes specified by the user. The
element of these arrays or hashes can be constrained to be object,
tied scalar.

- A way to later query the object or class to retrieve the list of
methods (aka slots) created by this module.

- A way to organize these slots in several catalogs.

- A way to backtrack from contained object to container object: When a
slot contains object or tied scalars hashes or arrays, the contained
object can be queried for the container object. In other words, the
parent object (the one constructed by Class::IntrospectionMethods
contains a child object in one of its slots either as a plain object
or an object hidden behind a tied
construct. Class::IntrospectionMethods will provide the child object
a method to retrieve the parent object reference.

You may notice similarities between this module and
Class::MethodMaker. In fact this module was written from
Class::MethodMaker v1.08, but it does not provide most of the fancy
methods of Class::MethodMaker. Only scalar, array and hash accessors
(with their tied and objects variants) are provided.

For more details, see:
http://search.cpan.org/~ddumont/Class-IntrospectionMethods-1.001/IntrospectionMethods.pm

THANKS
------

To Martyn J. Pearce for Class::MethodMaker and the enlightening
discussion we had a while ago about parent and catalog.

To Matthew Simon Cavalletto for the parameter translation idea that I
pilfered from Class::MakeMethods.


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




Similar ThreadsPosted
How should I announce the list of delayed class/object/method loaders? October 25, 2005, 9:54 am
RFC: new module Class::MakeIntrospecMethods October 18, 2004, 4:30 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

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap