Menu

#2 report function getel() doesn't work as specified

open
nobody
None
5
2004-01-12
2003-11-15
Tom Morris
No

This function only worked for index values from 1 to
the size of the list, but the C documentation says that
0 will return the last element in the list and -1 the
one before that and so on.

The C implementation shows that any negative number
that wraps around more than once is illegal. The
implementation also appears, however, to do automatic
list growing if a caller requests an element with an
index beyond the end of the list.

Support for 0 and negative indexes has been added, but
support for indexes greater than the size of the list
still needs to be fixed.

Discussion

  • Tom Morris

    Tom Morris - 2003-11-16
    • summary: getel() doesn't work as specified --> report function getel() doesn't work as specified
     
  • Tom Morris

    Tom Morris - 2003-11-29
    • assigned_to: nobody --> tfmorris
     
  • Daniel Kionka

    Daniel Kionka - 2004-01-12
    • assigned_to: tfmorris --> nobody
     

Log in to post a comment.