PR# 3954 Semantics of TWO_WAY_CURSOR_TREE put_child command

Problem Report Summary
Submitter:
Category: EiffelStudio
Priority: Low
Date: 2004/08/15
Class: Bug
Severity: Non-critical
Number: 3954
Release: 5.3
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Synopsis: Semantics of TWO_WAY_CURSOR_TREE put_child command

Description
Iam using Eiffel at home, and have a query/issue with the semantics of the 'put_child' comand of the TWO_WAY_CURSOR_TREE structure. This command is implemented as 'down(0), put_right' which implies that the cursor is positioned 'before' the new child node, which doesnt match the natural semantics of the command. Namely, to postion the cursor on the new child node, ie to implement the command as 'down(0), put_right, forth'. An alternative sematic would be to leave the cursor on the parent node by implementing the command as 'down(0), put_right, up'. If there is a strong reason for the current semantics, then could the state of the cursor after 'put_child' be explaned in the documentation. Yours constructively, Martin Kew.
To Reproduce

										
Problem Report Interactions
From:    Date:2004/08/15    Download