[VPM] testing two refs for same target
Darren Duncan
darren at DarrenDuncan.net
Sat Jul 5 02:15:07 CDT 2003
Peter Scott said:
>In which case the hash solution wouldn't work.
Hello Peter; thank you for your replies too.
Actually, if a user is declaring more than once that a node is a child of another, this would likely be considered an error, but it is one that my current input checking routines don't look for. A hash would be ideal except that I am interested in maintaining the order of all the child nodes under a parent. I may probably end up using both an array and a hash which both list the same items, for different reasons.
>Strange sort of inheritance relationship you've got going there...
I should clarify that there is technically no inheritence being used here. All of the "nodes" are each separate objects, all of which are in the same class. SQL::ObjectModel is conceptually similar to an XML DOM, which has a tree of nodes, except that it is more specialized in its content. If it were practical to do so I may even change it later to subclass an XML DOM implementation or something. But I probably won't since I don't need most of the DOM features and they take up space.
-- Darren Duncan
More information about the Victoria-pm
mailing list