What's left for 1.0? - string class

Anders F Björklund afb at algonet.se
Fri Nov 17 07:56:21 PST 2006


Aarti_pl wrote:

>> char and wchar are nothing special, but char[] and wchar[] are magic.
>> If those used ubyte[] and ushort[], code point looping wouldn't work.
> 
> so it works now?

Sure:

import std.stdio;

void main() {
     char[] text="Łóżko";
     foreach(wchar c; text) {
         writefln(c);
     }
}

--anders



More information about the Digitalmars-d mailing list