Recommened way to iterate on a narrow string

monarch_dodra monarchdodra at gmail.com
Sun Oct 14 01:07:22 PDT 2012


I'm just wondering what the "recommended" and "most efficient" 
way to do that is?

front + popFront is suboptimal, because you have to evaluate the 
code point length twice.

Some sort of fancy "stride" or "decode" scheme?

Or can I just go ahead and use "foreach", knowing that it is both 
easy to use, and super efficient?


More information about the Digitalmars-d mailing list