Forum: Object-Pascal / Delphi-Language
Delphi
by Medium,
15. Dez 2013
Rest assured: It wasn't the last time :) Those will follow us into our graves, I fear. The only "stupid" thing was to post it here, and expose us all to the fact, that even renowned programmers, as many of us are, aren't impregnable to the most basic faults available ;)
Forum: Object-Pascal / Delphi-Language
Delphi
by Medium,
14. Dez 2013
Because .Count gives you the count. Not the highest index. That would generally be Count-1, in zero based arrays and lists.
(I would be interested in how many threads here deal with this infamous off-by-one issue :))