virtual-by-default rant
Adam D. Ruppe
destructionator at gmail.com
Fri Mar 23 12:11:39 PDT 2012
Something that *might* help is to do unit tests. Yeah,
that's kinda ass, but it would catch a stray virtual early.
Do a unit test that does a traits check for virtuals:
http://dlang.org/traits.html#getVirtualFunctions
if the name isn't on a list of approved virtuals,
static assert fail.
You'd then maintain the list of approved virtuals
in the unit test, where it is easier to check over.
idk though, I've never worked on a project like this.
More information about the Digitalmars-d
mailing list