For each file and directory DirEntry in pathname[],
+ pass it to the callback delegate.
+
+Params:
+bit delegate(DirEntry * de) callback |
+Delegate that processes each
+ DirEntry in turn. Returns true to
+ continue, false to stop. |
+
+Example:
+This program lists all the files in its
+ path argument and all subdirectories thereof.
+ import std.stdio;
+ import std.file;
+
+ void main(char[][] args)
+ {
+ bool callback(DirEntry* de)
+ {
+ if (de.isdir)
+ listdir(de.name, &callback);
+ else
+ writefln(de.name);
+ return true;
+ }
+
+ listdir(args[1], &callback);
+ }
+
diff -uNr dmd-0.145/dmd/html/d/phobos/std_format.html dmd-0.146/dmd/html/d/phobos/std_format.html
--- dmd-0.145/dmd/html/d/phobos/std_format.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_format.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:37 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_math.html dmd-0.146/dmd/html/d/phobos/std_math.html
--- dmd-0.145/dmd/html/d/phobos/std_math.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_math.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:34 2006
+
Last update Thu Feb 9 22:33:36 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_md5.html dmd-0.146/dmd/html/d/phobos/std_md5.html
--- dmd-0.145/dmd/html/d/phobos/std_md5.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_md5.html 2006-02-09 22:33:40.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:38 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_outbuffer.html dmd-0.146/dmd/html/d/phobos/std_outbuffer.html
--- dmd-0.145/dmd/html/d/phobos/std_outbuffer.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_outbuffer.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:34 2006
+
Last update Thu Feb 9 22:33:36 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_path.html dmd-0.146/dmd/html/d/phobos/std_path.html
--- dmd-0.145/dmd/html/d/phobos/std_path.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_path.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:34 2006
+
Last update Thu Feb 9 22:33:36 2006
@@ -174,15 +174,15 @@
Examples:
version(Win32)
{
- getExt(r"d:\path\foo.bat") => "bat"
- getExt(r"d:\path.two\bar") => null
- }
+ getExt(r"d:\path\foo.bat") // "bat"
+ getExt(r"d:\path.two\bar") // null
+ }
version(linux)
{
- getExt(r"/home/user.name/bar.") => ""
- getExt(r"d:\\path.two\\bar") => "two\\bar"
- getExt(r"/home/user/.resource") => "resource"
- }
+ getExt(r"/home/user.name/bar.") // ""
+ getExt(r"d:\\path.two\\bar") // "two\\bar"
+ getExt(r"/home/user/.resource") // "resource"
+ }
@@ -398,6 +398,7 @@
version(Win32)
{
isabs(r"relative\path") => 0
+ isabs(r"\relative\path") => 0
isabs(r"d:\absolute") => 1
}
version(linux)
@@ -415,11 +416,11 @@
Joins two path components.
If p1 doesn't have a trailing path separator, one will be appended
- to it before concating p2.
+ to it before concatting p2.
Returns:
-p1 + p2. However, if p2 is an absolute path, only p2
+p1 ~ p2. However, if p2 is an absolute path, only p2
will be returned.
diff -uNr dmd-0.145/dmd/html/d/phobos/std_random.html dmd-0.146/dmd/html/d/phobos/std_random.html
--- dmd-0.145/dmd/html/d/phobos/std_random.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_random.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:37 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_stream.html dmd-0.146/dmd/html/d/phobos/std_stream.html
--- dmd-0.145/dmd/html/d/phobos/std_stream.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_stream.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:37 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_string.html dmd-0.146/dmd/html/d/phobos/std_string.html
--- dmd-0.145/dmd/html/d/phobos/std_string.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_string.html 2006-02-09 22:33:38.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:37 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_uri.html dmd-0.146/dmd/html/d/phobos/std_uri.html
--- dmd-0.145/dmd/html/d/phobos/std_uri.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_uri.html 2006-02-09 22:33:40.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:38 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_utf.html dmd-0.146/dmd/html/d/phobos/std_utf.html
--- dmd-0.145/dmd/html/d/phobos/std_utf.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_utf.html 2006-02-09 22:33:40.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:38 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_windows_charset.html dmd-0.146/dmd/html/d/phobos/std_windows_charset.html
--- dmd-0.145/dmd/html/d/phobos/std_windows_charset.html 2006-01-29 19:11:38.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_windows_charset.html 2006-02-09 22:33:40.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:36 2006
+
Last update Thu Feb 9 22:33:38 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_zip.html dmd-0.146/dmd/html/d/phobos/std_zip.html
--- dmd-0.145/dmd/html/d/phobos/std_zip.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_zip.html 2006-02-09 22:33:40.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:38 2006
diff -uNr dmd-0.145/dmd/html/d/phobos/std_zlib.html dmd-0.146/dmd/html/d/phobos/std_zlib.html
--- dmd-0.145/dmd/html/d/phobos/std_zlib.html 2006-01-29 19:11:36.000000000 +0100
+++ dmd-0.146/dmd/html/d/phobos/std_zlib.html 2006-02-09 22:33:40.000000000 +0100
@@ -24,7 +24,7 @@
| D
| Comments
- Last update Sun Jan 29 19:11:35 2006
+
Last update Thu Feb 9 22:33:38 2006
diff -uNr dmd-0.145/dmd/html/d/statement.html dmd-0.146/dmd/html/d/statement.html
--- dmd-0.145/dmd/html/d/statement.html 2006-01-02 14:03:56.000000000 +0100
+++ dmd-0.146/dmd/html/d/statement.html 2006-02-05 11:59:46.000000000 +0100
@@ -25,7 +25,7 @@
| Comments
- Last update Mon Jan 2 14:03:56 2006
+
Last update Sun Feb 5 11:59:45 2006
@@ -278,6 +278,14 @@
Expressions that have no effect, like (x + x), are illegal
in expression statements.
+ If such an expression is neede, casting it to void will
+ make it legal.
+
+int x;
+x; // illegal
+1+1; // illegal
+cast(void)(x + x); // ok
+
diff -uNr dmd-0.145/dmd/html/d/style.css dmd-0.146/dmd/html/d/style.css
--- dmd-0.145/dmd/html/d/style.css 2005-10-14 12:27:44.000000000 +0200
+++ dmd-0.146/dmd/html/d/style.css 2006-02-08 15:39:36.000000000 +0100
@@ -2,7 +2,7 @@
{
background: white;
color: black;
- font-family: Arial, Helvetica, sans-serif;
+ font-family: Helvetica, Verdana, Arial, sans-serif;
}
.contents {
margin-top: 0;