[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]


[... scenario of putting the same link in two different docs...]

   Q.  What happens?, What does this mess up?

   The current Doc interface does not allow this, because it >copies< the link
   it is inserting, although I'm not sure there's a significant difference.

Since orgls have no state, this cannot mess up anything. You have just
used a devious method to create two links in two different documents
that happen to have the same endsets and type. Some front ends might
get confused if you use the same partkey to index the two links, as
they might rely on the partkeys being globally unique.

In fact, although the current method is called
	Doc::makeLink (Link * linkToCopy) 
it just puts the orgl ID of the linkToCopy in the newly created link.