Signed word lengths and indexes

BCS none at anon.com
Mon Jun 14 18:48:10 PDT 2010


Hello Steven,

> div0 <div0 at users.sourceforge.net> writes:
> 
>> for(uint i = end - 1; i < length; --i)
>> ...
> What does "length" represent here? It's not clear to me how "i"
> descending toward zero is going to break the guard condition.
> 

My thought exactly.

If i<j and you --i, I'd assume i<j, if your code depends on the case where 
the assumption is wrong, don't ask me to do a code review because I won't 
sign off on it.

-- 
... <IXOYE><





More information about the Digitalmars-d mailing list