Final by default?

Daniel Murphy yebbliesnospam at gmail.com
Thu Mar 13 08:31:38 PDT 2014


"Brian Rogoff"  wrote in message 
news:hvdmgktbuhmemwqmbeqn at forum.dlang.org...

> It might be worthwhile to consider a compiler switch which would require 
> forced virtual/final annotations on all methods as per
>
> https://d.puremagic.com/issues/show_bug.cgi?id=11616#c4
>
> While code compiled with such a switch would be a bit more verbose, it 
> would ensure that programmers were careful with virtual. It was a good 
> transition plan, and the idea has value even if the final by default is 
> delayed or abandoned.

A compiler switch is not the place for this, but it would make a fine lint 
rule. 



More information about the Digitalmars-d mailing list