Beta D 2.070.0-b1

Joakim Brännström via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Jan 4 07:29:29 PST 2016


On Sunday, 3 January 2016 at 19:24:57 UTC, Martin Nowak wrote:
> First beta for the 2.070.0 release.
> Please report any bugs at https://issues.dlang.org
>
> -Martin

Regression?
Found when compiling dub-package scriptlike (struct Path).

#!/usr/bin/env rdmd
struct S {
     this(string r = ".") {
     }
}

void main(string[] args) {
     S s;
}

./foo.d(9): Error: variable foo.main.s default construction is 
disabled for type S
Failed: ["dmd", "-v", "-o-", "./foo.d", "-I."]

It works with dmd 2.069.2.
I think this has been discussed and is intentional.
I would suggest clearly mentioning it in the changelog.

// Joakim


More information about the Digitalmars-d-announce mailing list