On Sunday, 29 January 2017 at 13:18:11 UTC, Dmitry Olshansky wrote:
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.

Reply via email to