Inheritance from multiple interfaces with the same method name
jmh530
john.michael.hall at gmail.com
Thu Dec 7 15:54:58 UTC 2017
On Thursday, 7 December 2017 at 15:14:48 UTC, Adam D. Ruppe wrote:
>
>
> D also allows you to simply write:
>
> a.I.f();
> a.J.f();
>
> also works for explicitly calling a base class implementation
> btw
It would be nice if you could do something like below (I know you
can do something similar with std.conv.to).
void main()
{
import std.stdio : writeln;
float x = 2.5;
writeln(cast(int)x);
writeln(x.cast(int));
writeln(x.int);
}
More information about the Digitalmars-d
mailing list