Why does this compile (method in class without return type)
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 3 03:20:25 PDT 2017
On Wednesday, 3 May 2017 at 09:21:47 UTC, nkm1 wrote:
> On Wednesday, 3 May 2017 at 07:34:03 UTC, Daniel Kozák wrote:
>>
>> print in A is template:
>>
>
> What :)
> How does it interact with 'final'?
If it were a template (and it's not), then final would not be
applicable, because templated functions cannot be virtual.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list