Changeset 3380
- Timestamp:
- 03/19/08 00:13:13 (9 months ago)
- Files:
-
- trunk/example/manual/chapterStorage.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/example/manual/chapterStorage.d
r2465 r3380 59 59 60 60 // 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 ); 66 64 67 65 nameSet.addIf( "Alice" );












