< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Minor suggestion to use ++i instead of i++



On Nov 4, 2004, at 15.58, kaiduan xie wrote:

Hi, all,

After reviewing the source code, I found a lot of
places using i++ in loop of iterators, just to suggest
use ++i instead. Thanks,

kaiduan


I would tend to agree -- if you are editing some code that's doing an post-increment on an iterator, it's work changing to to pre-increment if there is no call for the value before incrementing.




a l a n a t j a s o m i d o t c o m