Explicit Interface Implementation
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 14 12:13:49 PST 2015
On Saturday, 14 February 2015 at 20:08:09 UTC, Ali Çehreli wrote:
> int foo()
> {
> return 42;
> }
the difference is C# also allows you to implement A.foo
separately from B.foo. I don't think D allows that.
You can call a specific interface at the usage site, but
implementing the function differently is something I don't think
we can do.
More information about the Digitalmars-d-learn
mailing list