in reply to What do you like in a Collection class?
Personally I dont understand the difference.
Consider the methods you listed.... Now lets have a look at the Tie::Hash documentation...
Seems like this cover pretty much what is needed from a collection. More advanced methods could be made available through the tied() keyword, in fact you could use some intelligent parameter conventions and aliases to provide both the standard tiedhash interface and a more powerful OO oriented one as well. (For instance in one TIEHASH i wrote I did just this with the "FIRSTKEY" method)TIEHASH classname, LIST STORE this, key, value FETCH this, key FIRSTKEY this NEXTKEY this, lastkey EXISTS this, key DELETE this, key CLEAR this
Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What do you like in a Collection class?
by Abigail-II (Bishop) on Jul 10, 2002 at 11:26 UTC | |
by demerphq (Chancellor) on Jul 10, 2002 at 13:42 UTC |