diff -uNr dmd-0.121/dmd/html/d/changelog.html dmd-0.122/dmd/html/d/changelog.html --- dmd-0.121/dmd/html/d/changelog.html 2005-04-15 14:23:02.000000000 +0200 +++ dmd-0.122/dmd/html/d/changelog.html 2005-05-04 12:24:38.000000000 +0200 @@ -24,6 +24,7 @@
+

+ What's New for + D 0.122 +

+ +May 3, 2005 +

+ +

New/Changed Features

+ + +

Bugs Fixed

+ + +

What's New for D 0.121 diff -uNr dmd-0.121/dmd/html/d/comparison.html dmd-0.122/dmd/html/d/comparison.html --- dmd-0.121/dmd/html/d/comparison.html 2005-04-15 14:13:42.000000000 +0200 +++ dmd-0.122/dmd/html/d/comparison.html 2005-05-01 00:46:22.000000000 +0200 @@ -12,13 +12,14 @@ + www.digitalmars.com [Home] [Search] [D] -
Last modified Feb 8, 2005. +
Last modified May 1, 2005.

D vs Other Languages

@@ -28,6 +29,7 @@ with other languages it is frequently compared with. While many capabilities are available with standard libraries, this table is for features built in to the core language itself. + Rationale. Only official standardized features are considered, not proposed features, betas, or extensions. And, like all language comparisons, it is biased in terms of what features are mentioned, omitted, and @@ -765,8 +767,9 @@ to Digital Mars. -
Copyright (c) 2003-2005 by Digital Mars, All Rights Reserved +
Copyright © 2003-2005 by Digital Mars, All Rights Reserved +
diff -uNr dmd-0.121/dmd/html/d/expression.html dmd-0.122/dmd/html/d/expression.html --- dmd-0.121/dmd/html/d/expression.html 2005-04-15 14:13:42.000000000 +0200 +++ dmd-0.122/dmd/html/d/expression.html 2005-04-24 01:47:14.000000000 +0200 @@ -128,7 +128,7 @@ + UnaryExpression ! UnaryExpression ~ UnaryExpression - delete UnaryExpression + delete UnaryExpression NewExpression cast ( Type ) UnaryExpression ( Type ) . Identifier @@ -392,9 +392,10 @@ x.re != y.re || x.im != y.im - For class objects, equality is defined as the result of calling - Object.opEquals(). If one or the other or both objects are null, - an exception is raised. + For class and struct objects, the expression (a == b) + is rewritten as + a.opEquals(b), and (a != b) is rewritten as + !a.opEquals(b).

For static and dynamic arrays, equality is defined as the @@ -713,10 +714,11 @@ ( Expression ) +

New Expressions

New expressions are used to allocate memory on the garbage - collected heap (default) or using a class specific allocator. + collected heap (default) or using a class or struct specific allocator.

To allocate multidimensional arrays, the declaration reads @@ -728,6 +730,22 @@ foo = new char[][30]; // allocate 30 arrays of strings + If there is an ( ArgumentList ), then + those arguments are passed to the class or struct specific allocator + function after the size argument. + +

Delete Expressions

+ + Delete expressions delete memory on the garbage collected + heap, or using a class or struct specific deallocator. + The UnaryExpression must be a reference to a class + object, a pointer to a struct object, a pointer, or + a dynamic array. +

+ + The pointer or reference is set to null after the delete + is performed. +

Cast Expressions

In C and C++, cast expressions are of the form: diff -uNr dmd-0.121/dmd/html/d/faq.html dmd-0.122/dmd/html/d/faq.html --- dmd-0.121/dmd/html/d/faq.html 2005-04-15 14:13:42.000000000 +0200 +++ dmd-0.122/dmd/html/d/faq.html 2005-04-30 14:52:40.000000000 +0200 @@ -1,7 +1,7 @@ + @@ -138,7 +139,8 @@
  • Create a database instance, on an existing Open-RJ database file, e.g.
    -    Database db = new Database("pets.orj", ORJ_FLAG.ELIDE_BLANK_RECORDS);
    +    char[]   contents = cast(char[])(std.file.read("pets.orj"));
    +    Database db       = new Database(contents, ORJ_FLAG.ELIDE_BLANK_RECORDS);
       
  • @@ -453,7 +455,7 @@

    -


    Copyright (c) 2004 by Matthew Wilson, Synesis Software Pty Ltd, All Rights Reserved +
    Copyright (c) 2004-2005 by Matthew Wilson, Synesis Software Pty Ltd, All Rights Reserved diff -uNr dmd-0.121/dmd/html/d/std_stream.html dmd-0.122/dmd/html/d/std_stream.html --- dmd-0.121/dmd/html/d/std_stream.html 2005-04-15 14:13:42.000000000 +0200 +++ dmd-0.122/dmd/html/d/std_stream.html 2005-05-03 16:04:00.000000000 +0200 @@ -19,7 +19,7 @@ [Search] [D] -
    Last update Jan 15, 2005 +
    Last update Apr 21, 2005

    Phobos: std.stream

    @@ -139,6 +139,18 @@
    size_t available()
    Retrieve the nubmer of bytes available for immediate reading.

    + +

    bool eof() +
    Return whether the current file position is the same as the + end of the file. This does not require actually reading past the + end, as with stdio. For non-seekable streams this + might only return true after attempting to read past the end. +

    + +

    bool isOpen() +
    Return true if the stream is currently open. +

    +


    @@ -218,6 +230,19 @@ syntax. See std.format. Returns self to chain with other stream commands like flush.

    + +

    void flush() +
    Flush pending output if appropriate. +

    + +

    void close() +
    Close the stream, flushing output if appropriate. +

    + +

    bool isOpen() +
    Return true if the stream is currently open. +

    +


    @@ -243,6 +268,11 @@
    Indicates whether this stream is open.

    +

    protected bit readEOF +
    Indicates whether this stream is at eof after the last + read attempt. +

    +

    Reading

    These methods require that the readable flag be set. Problems with reading result in a ReadException being thrown. @@ -252,7 +282,7 @@
    size_t readBlock(void* buffer, size_t size)
    Read up to size bytes into the buffer and return the number - of bytes actually read. + of bytes actually read. A return value of 0 indicates end-of-file.

    Writing

    @@ -308,29 +338,14 @@

    ulong size() -
    Retrieve the size of the stream in bytes. -

    - -

    bit eof() -
    Return whether the current file position is the same as the - end of the file. This does not require actually reading past the - end of the file, as with stdio. -

    - -

    bit isOpen() -
    Return true if the stream is currently open. -

    - -

    void flush() -
    Flush pending output if appropriate. -

    - -

    void close() -
    Close the stream, flushing output if appropriate. +
    Retrieve the size of the stream in bytes. The stream must + be seekable or a SeekException is thrown.

    char[] toString() -
    Read the entire stream and return it as a string. +
    Read the entire stream and return it as a string. If the stream + is not seekable the contents from the current position to eof is + read and returned.

    uint toHash() diff -uNr dmd-0.121/dmd/html/d/toc.html dmd-0.122/dmd/html/d/toc.html --- dmd-0.121/dmd/html/d/toc.html 2005-04-15 14:13:42.000000000 +0200 +++ dmd-0.122/dmd/html/d/toc.html 2005-05-01 00:46:50.000000000 +0200 @@ -10,11 +10,12 @@ - + +
    The
    -
    D
    +
    D
    Programming
    Language
    @@ -76,6 +77,7 @@
    Comparisons
    · D vs C/C++/C#/Java
    +· Rationale for Builtins
    · Converting C to D
    · Converting C++ to D
    · The C Preprocessor vs D
    @@ -104,6 +106,7 @@
    Copyright © 1999-2005 by Digital Mars, All Rights Reserved

    +