How to search for an element in the array. D2 phobos.

Bill Baxter wbaxter at gmail.com
Sun Jul 12 18:33:00 PDT 2009


On Sun, Jul 12, 2009 at 3:56 PM, bearophile<bearophileHUGS at lycos.com> wrote:
> Eldar Insafutdinov:
>> I think I completely misunderstood how to use it.
>
> Yes, it's too much complex. It tries to do many different things in the most efficient way possible, the result is a high complexity in usage. That's one of the faults of Andrei's code, it's not tested by letting  average coders use it.
> A solution for this problem is to offer simple functions (like you can find in Tango. In my dlibs the situation is intermediate, I think) with a simple API for the most common purposes.

Isn't that a matter of built-in arrays not yet sporting the range interface?
I assume if .empty is part of the range interface then arrays are
supposed to support it.

--bb


More information about the Digitalmars-d-learn mailing list