Essentially this: foreach(dchar ch; some_string){ ... }Becomes: import std.utf; size_t i=0; while(i<some_string.length){ dchar ch = decode(some_string, i); ... } --- Dmitry Olshansky
Won't work right now, since ref is not supported. Also I really want to minimize dependency and phobos.