Final by default?

deadalnix deadalnix at gmail.com
Thu Mar 13 22:17:29 PDT 2014


On Friday, 14 March 2014 at 04:40:56 UTC, captaindet wrote:
> On 2014-03-13 22:40, Daniel Murphy wrote:
>> On the other hand,
>>
>> class C { virtual: ... }
>>
>> _does_ trivially bring back virtual-by-default.
>
> is this all it takes? i mean, after switching to 
> final-by-default, going through anybodies codebase and blindly 
> adding virtual at the very beginning of each class definition 
> reestablishes to 100% old behavior?
>
> a regex s&r can probably do this. or a tiny tool. this is a 
> step everyone can readily subscribe to. if it is that easy i 
> don't see any grounds for a too-breaking-change argument.
>
> /det

Yes sure. Including in boilerplate generated via mixins, 
obviously.


More information about the Digitalmars-d mailing list