Re: Documentaion update request for "find"

new topic     » goto parent     » topic index » view thread      » older message » newer message
alanjohnoxley said...

However, if find returns -1 instead of 0, then the user would know what gives, especially if the -1 is documented?
I conceed it would break some existing code though, but only in places where the find scope is wrong anyway.

This is wrong.

find() works correctly, even on (especially on) nested sequences. Your change would break code that is using find() correctly with nested sequences.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu