Why string alias is invariant ?
    Don Clugston 
    dac at nospam.com.au
       
    Thu Jan 31 09:18:57 PST 2008
    
    
  
Janice Caron wrote:
> 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.
Seems that assumeUnique is going to be so common, it deserves a shorter name.
    
    
More information about the Digitalmars-d
mailing list