Final by default?
Manu
turkeyman at gmail.com
Thu Mar 13 23:30:45 PDT 2014
On 14 March 2014 16:20, Walter Bright <newshound2 at digitalmars.com> wrote:
> On 3/13/2014 8:40 PM, Daniel Murphy wrote:
>
>> "Walter Bright" wrote in message news:lft8ok$2epl$1 at digitalmars.com...
>>
>> Also,
>>>
>>> class C { final: ... }
>>>
>>> achieves final-by-default and it breaks nothing.
>>>
>>
>> No, it doesn't, because it is not usable if C introduces any virtual
>> methods.
>>
>
> That's what the !final storage class is for.
>
Please don't consider !final, that's like pouring lemon juice on the would.
Use virtual, it's a keyword that everybody knows and expects, and already
exists in peoples code that they might be migrating to D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140314/b597a5cf/attachment.html>
More information about the Digitalmars-d
mailing list