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

Changeset 1070

Show
Ignore:
Timestamp:
12/08/06 14:04:11 (2 years ago)
Author:
larsivi
Message:

alias fix already committed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patches/proposals/filescan-opApply.patch

    r1068 r1070  
    11Index: tango/io/FileScan.d 
    22=================================================================== 
    3 --- tango/io/FileScan.d (revision 1054
     3--- tango/io/FileScan.d (revision 1069
    44+++ tango/io/FileScan.d (working copy) 
    55@@ -38,28 +38,14 @@ 
    6          scan ((args.length is 2) ? args[1] : ".", "d"); 
     6         scan ((args.length is 2) ? args[1] : ".", ".d"); 
    77  
    88         Cout ("directories:").newline; 
    99-        scan.directories (&dirs); 
    1010+        foreach (FilePath path; scan) 
    11 +                Cout (path).newline; 
     11+                Cout (path).newline; 
    1212  
    1313         Cout ("files:").newline; 
     
    2424-         
    2525-        // find all files with a 'd' extension 
    26 -        scan ((args.length is 2) ? args[1] : ".", "d"); 
     26-        scan ((args.length is 2) ? args[1] : ".", ".d"); 
    2727- 
    2828-        Cout ("Directories:").newline; 
     
    3636  
    3737 class FileScan 
    38 @@ -69,7 +55,7 @@ 
    39          private Dependencies    deps; 
    40          private Filter          filter; 
    41   
    42 -        typedef bool delegate (FilePath) Filter; 
    43 +        alias bool delegate (FilePath) Filter; 
     38@@ -136,32 +122,6 @@ 
    4439  
    4540         /*********************************************************************** 
    4641  
    47 @@ -133,37 +119,8 @@ 
    48                  scanFiles (deps, path); 
    49                  return this; 
    50          } 
    51 
    52          /*********************************************************************** 
    53   
    54 -                Visit all the files found in the last scan. The delegate 
    55 -                should return false to terminate early. 
     42-                Visit all the files found in the last scan.  
    5643- 
    5744-        ***********************************************************************/ 
     
    6653-        /*********************************************************************** 
    6754-         
    68 -                Visit all directories found in the last scan. The delegate 
    69 -                should return false to terminate early. 
     55-                Visit all directories found in the last scan.  
    7056- 
    7157-        ***********************************************************************/ 
     
    8369  
    8470         ***********************************************************************/ 
    85 @@ -190,5 +147,34 @@ 
     71@@ -188,5 +148,34 @@ 
    8672                            deps.mods ~= file; 
    8773                         }