Why not finally allow bracket-less top-level keywords?

deadalnix deadalnix at gmail.com
Mon Mar 19 03:04:57 PDT 2012


Le 18/03/2012 18:06, Simen Kjærås a écrit :
> On Sun, 18 Mar 2012 18:07:10 +0100, deadalnix <deadalnix at gmail.com> wrote:
>
>> Le 18/03/2012 17:49, Timon Gehr a écrit :
>>> On 03/18/2012 05:25 PM, FeepingCreature wrote:
>>>>
>>>> Advantages: internally consistent, no need for completely new syntax,
>>>> "final class" can be deprecated (it never worked well anyway).
>>>>
>>>
>>> final class means that the class cannot be inherited from.
>>
>> What is the point to inherit is no virtual method exists ?
>
> Access to protected members.

That is a reason, but I never saw that except for dirty hacks :D


More information about the Digitalmars-d mailing list