module main;
import std.stdio; interface Foo {} class Bar : Foo {} void main() { Foo f = new Bar; writeln(f.classinfo); }The above program will print the static type "main.Foo" instead of the dynamic type "main.Bar".
-- /Jacob Carlborg
module main;
import std.stdio; interface Foo {} class Bar : Foo {} void main() { Foo f = new Bar; writeln(f.classinfo); }The above program will print the static type "main.Foo" instead of the dynamic type "main.Bar".
-- /Jacob Carlborg