Lionello Lunesu wrote:
"John C" <[email protected]> wrote in message news:[email protected]...Andrei Alexandrescu Wrote:Cool! So then how do I rename find, ifind, rfind, and irfind in std.string?AndreiindexOf(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
