inlining final functions

n00b n00b at nospam.com
Tue Feb 26 07:20:21 PST 2013


Is the following correct :

class X
{
	void foo() { ... }
}
class Y : X
{
	final override void foo() { ... }
}
	

Y y = new Y;
y.foo; //inlined
X x = y;
x.foo; //not inlined



More information about the Digitalmars-d-learn mailing list