CTFE Status

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 29 05:35:56 PST 2017


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.



More information about the Digitalmars-d mailing list