std.string and std.algorithm: what to do?
Lionello Lunesu
lionello at lunesu.remove.com
Thu May 14 18:34:32 PDT 2009
"John C" <johnch_atms at hotmail.com> wrote in message
news:guhel3$18kk$1 at 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
:)
L.
More information about the Digitalmars-d
mailing list