On Sun, Sep 6, 2009 at 7:53 PM, Edward K. Ream <[email protected]> wrote:

> 2. Generators returning (unified)nodes simply use the corresponding
> position generators.  Thus, all such generators must be members of the
> commands or position class, *not* the vnode class.
>
> def allNodes(c):
>    for p in allPositions(c):
>        yield p.v
>    raise StopIteration

I think it would be a better idea to bypass positions for this
generator, because we can implement *much* more efficient generators
by using nodes alone. Also, the node generator could return the whole
parent stack (because it maintains it anyway).

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to