Currently the iterator component searched the stack for the iteration target,
then while iterating it pushes the value to the stack.

In my extension I have support for pre and post traversal of a tree structure.
The pre and post selectors are OGNL expressions. As such it is needed to have
the current node in a value stack during resolution of left/pre and right/post
children for a give node.

The question is begged should it be pushed on for evaluation and then popped off
after or should it be pushed on before the current value (in between the current
value and the "action")?

My gut is telling me that push and pop will result in the least surprise for a
developer using it, as there is no possibility of the node masking an action,
but this prevents access of the node from inside the iterator except through
some "status" like option.

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to