On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote:
Am 28.01.2024 um 12:14 schrieb Michael Van Canneyt via fpc-devel:
2)
Is there, or has there once been?
(found in the synedit highlighter)
final
final comes after virtual/dynamic. Its supposed to stop you from
overriding
a method. Which is a bit strange because then you should not declare it
virtual to begin with.
A person that overrides virtual methods does not always have control
over whether the method had been declared as virtual.
Hm. That makes no sense at all to me ?
You normally add override only when you know the base class has virtual.
Otherwise, don't add virtual. The compiler will tell you if it was possible
or not.
Michael.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel