Calling un-overridden class method

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Oct 12 19:35:12 PDT 2012


On 10/13/12, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> The problem is, I can't seem to specify that I want it to _statically_
> bind the save method to call B.eval;

Try using typeof(this).eval

typeof(this) and typeof(super) are mentioned here:

http://dlang.org/declaration.html#typeof
http://dlang.org/expression.html#this


More information about the Digitalmars-d-learn mailing list