My understanding is that the static
keyword was introduced for compatibility with .NET (along with strict
)
class TExample
class procedure First;
class procedure Second; static;
The differences between procedures First
and Second
are :-
First
can be overridden in a descendant classFirst
passes an implicit self parameter referencing theTExample
class.
Class procedure Second
cannot be overridden and passes no parameters and is thus .NET compatible. So is there any point in using the static
keyword in native-only code now that there is a divergence between Delphi & Prism syntax?