Alfredo Braunstein wrote: >> So, how do you envisage keeping the data valid? > > I don't know if that is desirable. Maybe we need some simple structs > after all. I don't know how the Cursor class will behave in this > respect. As it is based in paroffsets, it seems that it can lose > track if for instance one eliminates one paragraph before (and/or up > in the hierarchy)... maybe it's indeed something that needs > discussion. The distributed cursor has the advantage that it never > gets invalidated except when we eliminate the paragraph it's in.
Of course, having a centralised dispatch should make it quite easy to keep your PosIteratorItem valid. Why not add something to the block that André uses to keep Cursor valid and see whether that can be made to work? -- Angus