Higher level built-in strings

Sean Kelly sean at invisibleduck.org
Tue Jul 20 08:02:57 PDT 2010


Steven Schveighoffer Wrote:
> 
> How do we make this work?
> 
> auto str = "hello world";
> foreach(c; str)
>     assert(is(typeof(c) == dchar));

foreach (dchar c; str)
    assert(...);

This feature has been in D for years.


More information about the Digitalmars-d mailing list