Alfredo Braunstein <[EMAIL PROTECTED]> writes:

| Lars Gullik Bjønnes wrote:
| 
| > IMHO it is your comments about the stl that are confusing... and I do
| > not get your point about it.
| 
| What I say is that the value -1 for lastPos() is not 'magic', it perfectly
| consistent.

perfectly weird!
 
| On a paragraph with n positions, lastPos() should return n-1. So if the
| paragraph is empty it should return -1. (similar behavior as
| std::string::rend(), modulo translation on indices to iterators)

rend() is special and has now "physical" relevance.

And it is not the [-1] element...
 
-- 
        Lgb

Reply via email to