On Monday, 5 October 2015 at 19:43:54 UTC, bitwise wrote:
also:

// Error: can only synchronize on class objects, not 'Scoped'
auto a1 = scoped!A("Foo");
synchronized(a1) {}

and also:

// Error: template main.foo cannot deduce function from argument types !()(Scoped)
void foo(T)() if(is(T == A)) { }
void main(string[] args) {
    auto a1 = scoped!A("Foo");
    foo(a1);
}

    Bit

This is more an issue with `alias this` than it is with `scoped`. Really, the issue I outlined is also due to `alias this` and its implicit conversion.

Reply via email to