Why the hell doesn't foreach decode strings

kennytm kennytm at gmail.com
Sat Oct 22 12:37:09 PDT 2011


Walter Bright <newshound2 at digitalmars.com> wrote:
> On 10/22/2011 2:21 AM, Peter Alexander wrote:
>> Which operations do you believe would be less efficient?
> 
> All of the ones that don't require decoding, such as searching, would be
> less efficient if decoding was done.

You can std.algorithm.find to do searching, not foreach. The former can
decide whichever efficient method to use.


More information about the Digitalmars-d mailing list