On Mon, Sep 23, 2013 at 9:18 AM, Jacob Peck <[email protected]> wrote:
Another implementation detail would be what do you get when you ask for > c.virtualRootPosition()'s parent? I suggest that it just returns itself, > so that we don't need icky guards in scripts. > A very bad idea. Icky guards are essential, because the case in which p.parent() is empty truly *is* a special case. Scripts *must* call p.moveToRoot(old_root=old_root) as needed. Failing to do this risks losing data. To repeat what I just said to Terry, Leo scripts must deal with the API as it is. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
