Lionello Lunesu wrote:

"John C" <johnch_a...@hotmail.com> wrote in message news:guhel3$18k...@digitalmars.com...
Andrei Alexandrescu Wrote:

Cool! So then how do I rename find, ifind, rfind, and irfind in std.string?

Andrei

indexOf(bool ignoreCase = false), lastIndexOf(bool ignoreCase = false).

Please, an enum instead of bool... It's not apparent what indexOf(true) is supposed to do when you encounter it. Yes, named parameters would solve this :)

Yah, I defined

enum CaseSensitive { no, yes }


Andrei

Reply via email to