Hello,

This forum was recommended as a good place to find out whether an idea for a module is any good.

So what would you expect from a module named Object::Assimilate.

The draft is a small helper class overloading the ne and eq operators to perform compares on objects.

The word Assimilate was listed as synonym for compare, so I picked that since, I might want to extend the class with 'merging' capabilities (at a later stage).

Any thoughts or comments?

Replies are listed 'Best First'.
Re: What to expect from Object::Assimilate
by chromatic (Archbishop) on Aug 27, 2001 at 09:28 UTC
    How does it compare to writing my own overload methods? Does it provide some sort of mechanism to distinguish which object attributes are significant? Example code would be nice.

    I'm not trying to be tough, just trying to get a feel for what the module does. If it does what I think it does, it sounds very useful.

      Hi chromatic, Well the class is VERY simple, it stringifies objects and compares these. You can find the code at: http://jonasbn.hjem.wanadoo.dk/perl/ So all it does is save you from writing you own overload method. But at least to me that's a beginning. I have changed the class name to Object::Compare instead.
Re: What to expect from Object::Assimilate
by princepawn (Parson) on Aug 27, 2001 at 10:52 UTC
    This forum was recommended as a good place to find out whether an idea for a module is any good.
    the usenet group comp.lang.perl.modules is very helpful also.

    So what would you expect from a module named Object::Assimilate.
    Normally such modules are in the Class hierarchy, not Object. But anyway, it sounds like some sort of prototype based object with easy means of adding slots from other objects.
    The word Assimilate was listed as synonym for compare
    When I think assimilate, I think of something which merges in easily without being noticed. Or something like a Chameleon, which can take on the characteristics of something else.
      Well I have given your response some thought and I have decided to change the name to Object::Compare, I will get back to the Assimilation part when I get the time (and insight). About the 'firstname' I still convinced it should be Object since it does not work on classes but objects... Thanks for the feed-back