Why string alias is invariant ?

Janice Caron caron800 at googlemail.com
Thu Jan 31 09:11:57 PST 2008


On 1/31/08, Sean Kelly <sean at f4.ca> wrote:
> And to do so the contents of data must be duplicated,

The problem there is the idup. Replace it with

     foreach( line; lines )
     {
         writefln( tolower( assumeUnique(line)) );
     }

and the duplication goes away.



More information about the Digitalmars-d mailing list