Index ranges.


R. Clayton (rclayton@monmouth.edu)
(no date)


Can we assume that i <= j for index ranges?

  You may not; in such cases the index range is invalid. I have updated the
  documentation to make this clear.

    // Return an array sequence holding the values in the index range (i, j);
    // die with an error message if (i, j) is not a valid index range.

       array_sequence slice(unsigned i, unsigned j) const;

  Note that your code should print an error message; code that dies without an
  error message will be considered wrong.



This archive was generated by hypermail 2.0b3 on Thu Dec 19 2002 - 20:30:05 EST