On Tue, Apr 28, 2015 at 3:52 AM, Aryeh Gregor <a...@aryeh.name> wrote:
> Personally, I was surprised when I first learned that override/final
> can only be used on virtual functions.  I was definitely unaware that
> override/final imply virtual until I read this thread.  It seems David
> Baron also didn't know.  So I think keeping "virtual" makes things
> clearer for people who aren't C++ gurus like you.  :)  I would wager
> that most of our developers would not realize that "void foo()
> override;" is a virtual function, especially if they didn't think
> about it much.


It's not that much of a stretch to imagine that override and final
only make sense with virtual functions.

I would like exactly one permissible syntax. The one that Ehsan has
proposed is the cleanest.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to