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);
}

Reply via email to