On Aug 23, 10:22 am, "Ville M. Vainio" <[email protected]> wrote:

> Iteration through tree ofter reuses the same position object (mutating
> where it points to). You need to copy() a position if you want it to
> stay valid through multiple loop iterations.

Exactly.  This is an extremely important space (gc) optimization.  The
explicit copies are worth the bother.  Indeed, they are a reminder
that new objects are being created.

Edward

-- 
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