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


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

Reply via email to