D 2015/2016 Vision?
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 5 15:15:57 PDT 2015
On Monday, 5 October 2015 at 21:29:20 UTC, Namespace wrote:
> But you can simply relinquish alias this and use opDispatch.
> Problem solved.
I don't understand what you mean.
Thinking about this now though, shouldn't this be a bug?
I think there should be a rule for this one:
class A{}
struct B { A a; alias a this; }
A a = B(); // error
Error: assignment from alias this not allowed for class or
interface alias.
Bit
More information about the Digitalmars-d
mailing list