dmd 1.051 and 2.036 release

Walter Bright newshound1 at digitalmars.com
Thu Nov 5 23:23:01 PST 2009


Walter Bright wrote:
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.036.zip

If you have functions like this:

    void foo(T[3] array)

and want them to behave the same way, add the ref keyword:

    void foo(ref T[3] array)

as static arrays are no longer passed by reference, unless explicitly 
marked as such.

Functions can also return static arrays now.


More information about the Digitalmars-d-announce mailing list