std.string and std.algorithm: what to do?

Lionello Lunesu lionello at
Thu May 14 18:34:32 PDT 2009

"John C" <johnch_atms at> wrote in message 
news:guhel3$18kk$1 at
> 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 


More information about the Digitalmars-d mailing list