> Ok I understand. But with either IUP 3.5 or IUP 3.6, a rootless tree start
with no
> node at all, right? 

  Yes.

> Then, since insertbranch0 adds a node at the same depth as
> the referenced node, shouldn't it shouldn't fail with IUP 3.5 as well for
empty
> trees, since there is no reference node?

  Since there is no reference node, it should fail. But in 3.5 it wasn't
failing. Now in 3.6 it will fail, so you must use -1. Then after inserting
the first node you can use 0 again.

  I know I could assume that if the tree is empty and it is used 0 as
reference node, then ignore the reference node. But for now this is the 3.6
behavior. Maybe we can improve that for future versions.

Best,
Scuri



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to