Hello Ruslan,Hello, Martyn and other.
On Wed, Jan 21, 2004 at 01:59:35PM +0300, Ruslan U. Zakirov wrote:
I realy realy sorry, I've forgot to attach file :( Was tired a lot.
A quick glance over prompts my first question: what does this module provide that other Class generating modules, e.g., Class::MethodMaker, Class::MakeMethods, Class::Struct, do not?
Class::Struct - it's implementation of C like structs. Looking in source said that it does not like ISA at all so It's not OO style at all.
This module has no similarity in reasons and goals of mine.
I didn't find any similarity with Class::MakeMethods. I'm going in another direction. This module(distro) do much on get/set methods, but not iteration.
I want next features: 1) Ordered container of any elements in its cells.
2) Support for many such containers in one object. For example: One Object have next lists: Attribute Child Sibling
3) It's something like 'bidirect lists' in C which have next and prev refs, but I want abstract this class from data in cells.
Very good schem:
my $attr = $Obj->Attrs->First;
while ($attr->Next) {
...
}
but force me to change Attr object, so I've decided to use next style:
$Obj->InitList(Name => 'Attr');
$Obj->PushAttr($attr); #or
$Obj->Push(List => 'Attr', Element => $attr);
while (my $attr = $Obj->NextAttr) { ... }
4) Main goal is walking through list(Next, Prev, First, Last)
5) I don't want to give public interface to internal array what other modules do.
6) I consider using of this module in OO enviorment so support for join method is something not normal.
I hope I've spot more light with this letter.
Best regards. Ruslan.
Mx.