Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3380

Show
Ignore:
Timestamp:
03/19/08 00:13:13 (9 months ago)
Author:
kris
Message:

updated per collection change

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/manual/chapterStorage.d

    r2465 r3380  
    5959 
    6060    // Create and fill the containers 
    61     auto nameSet = new TreeBag!(char[])( null, new class() Comparator!(char[]){ 
    62         int compare( char[] first, char[] second ){ 
    63             return Ascii.icompare( first, second ); 
    64         } 
    65     }); 
     61    auto nameSet = new TreeBag!(char[])( null, (char[] first, char[] second) 
     62                               {return Ascii.icompare(first, second);} 
     63                               ); 
    6664 
    6765    nameSet.addIf( "Alice" );