February 11, 2020
On Tuesday, 11 February 2020 at 13:04:01 UTC, Dennis wrote:

>
> But the takeaway is: even if you make a decision a bit more intelligently, it can increase compiler complexity in unexpected ways.

Yes, I am aware of the problem:

struct S {
    int a;

    // has the same problem as sizeof but compiles
    static if (__traits(allMembers, S).length == 1) {
        int b;
    }
}

Don't know what would I do about it.

1 2
Next ›   Last »