On Tue, May 14, 2013 at 5:56 PM, SegundoBob <[email protected]> wrote:

> That is, so far as I can tell, p.setDirty() and p.v.setDirty() are
equivalent.

They are very different at the code level.  Here is p.setDirty::

    def setDirty (self,setDescendentsDirty=True):

        '''Mark a node and all ancestor @file nodes dirty.'''

        p = self ; dirtyVnodeList = []

        # g.trace('dirty: %s, setDescendentsDirty: %s' % (
            # p.v.isDirty(),setDescendentsDirty),p.h)

        if not p.v.isDirty():
            p.v.setDirty()
            dirtyVnodeList.append(p.v)

        # Important: this must be called even if p.v is already dirty.
        # Typing can change the @ignore state!
        dirtyVnodeList2 =
p.setAllAncestorAtFileNodesDirty(setDescendentsDirty)
        dirtyVnodeList.extend(dirtyVnodeList2)

        return dirtyVnodeList

And here is v.setDirty::

    def setDirty (self):

        self.statusBits |= self.dirtyBit

When in doubt, read the code.

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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to