Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#9 suggest improved treatment of back pointer in doubly linked

open
Simon Wright
None
3
2007-01-21
2007-01-15
Chris Henrich
No

In bc-containers-lists-double.adb, in the procedure Clear(R: in out double_Node_Ref) the code that reads
if Curr /= null then
Curr.Previous := null;
end if;
should be changed to
if Curr /= null and then Curr.Previus = Ptr then
Curr.Previous := null;
end if;
With this change, the removable of unreachable items from memory will have no surprising side effects on other items.

Discussion

  • Chris Henrich
    Chris Henrich
    2007-01-15

    • priority: 5 --> 3
     
  • Simon Wright
    Simon Wright
    2007-01-21

    • assigned_to: nobody --> simonjwright