0/1 vector for indexing leads to funny behaviour (PR#8389) (maybe a documentation deficiency?)
On Wed, 14 Dec 2005, Tony Plate wrote:
That's what I was trying to say: the whole truth is that numeric index vectors that contain positive integral quantities can also contain zeros. Upon rereading this passage yet again, I think it is more misleading than merely incomplete: the phrasings "positive integral quantities", and "*must* lie in the set ..." rule out the possibility of the vector containing zeros.
"Someone told me that you can't run without bouncing the ball in basketball. I got a basketball and tried it and it worked fine. He must be wrong" -- a comp.lang.c standard It doesn't rule out the the possibility of the vector containing zeros, it tells you that you should not put zeros in the vector. -thomas