>> class Timer : Thread {
>> override Timer start() { ... }
>> }
>>
>> https://dlang.org/spec/function.html#virtual-functions
>>
>> (see item 6)
>>
>> -Steve
> Thanks for this.
> It works for me only without the override (with override I get
> Error: function timer.Timer.start does not override any function, did
> you mean to override 'core.thread.Thread.start'?).
This seems to be connected to Thread.start being a final function.Re: Is it possible to return the subclass from a method of the parent class in dlang?
Christian Köstlin via Digitalmars-d-learn Fri, 02 Mar 2018 16:15:56 -0800
- Is it possible to return the ... Christian Köstlin via Digitalmars-d-learn
- Re: Is it possible to re... Steven Schveighoffer via Digitalmars-d-learn
- Re: Is it possible t... Christian Köstlin via Digitalmars-d-learn
- Re: Is it possib... Christian Köstlin via Digitalmars-d-learn
- Re: Is it po... H. S. Teoh via Digitalmars-d-learn
- Re: Is it possible to re... Jacob Carlborg via Digitalmars-d-learn
