[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

ArrayIterators, get, and any...

A minor bug.  Now what do you think would happen when an IntegerTable is
iterated over from start to stop (not tally) using get?
  Well, I wondered that too.  The routine any happily iterates over the
entire allocated table using get.  Boom.
  I fixed it by using fetch, and skipping over the empty slots.  Your
any would only work if the table were filled (as in - never create a table
bigger than exactly what is in it now...) and charming. (contiguous in this
case).  I feel that the more general application is to iterate over the
items filled into the table even if they aren't contiguous - something not
required by the table specification, i might add.