Menu

#12 Inconsistent semantics of Insert procedures (2)

v1.0_(example)
wont-fix
None
5
2018-05-02
2007-01-15
No

In bc-containers-lists-double.adb, the procedure
Insert(L : in out List; From_List : in out List; Before : positive)
raises BC.Not_Root if From_List points to an item that has another predecessor. This is inconsistent with
procedure Insert(L : in out List; From_List : in out List)
and indeed the former procedure will not make this test if Before happens to be 1.

I recommend that the test be taken out, and the user advised of the possible side effects.

Discussion

  • Simon Wright

    Simon Wright - 2007-01-21
    • assigned_to: nobody --> simonjwright
     
  • Simon Wright

    Simon Wright - 2018-05-02
    • status: open --> wont-fix
    • Group: --> v1.0_(example)
     

Log in to post a comment.

MongoDB Logo MongoDB