M
Malcolm McLean
I'm inclined to agree. You pass in a capacity, but it would be a lot clearerFlash Gordon said:Malcolm McLean wrote, On 12/08/07 19:22:
So fix it and all the other reported bugs. You should also add a change
record to the book so that people know what you have fixed.
Perhaps he thought you should actually test the code in your book when you
are charging for it? Proper testing would have included filling the hash
table.
Actually, I would say it shows that your implementation makes it harder
for people to see how the algorithm works. A decent teaching
implementation of a hash would, IMHO, include the check rather than
relying on how another non-standard (although provided) function behaves.
if the function explicitly rejected attempts to fill the table beyond that
capacity.