Static method shouldn't have hidden parameters
Original Reporter info from Mantis: sekelsenmat
-
Reporter name: Felipe Monteiro de Carvalho
Original Reporter info from Mantis: sekelsenmat
- Reporter name: Felipe Monteiro de Carvalho
Description:
Hello,
There is a problem on the implementation of static methods. They currently have a hidden parameter pointing to the VTM, while there should be none.
Documentation:
http://www.freepascal.org/docs-html/prog/progsu57.html
Simple program which uses static methods:
program statictest;
{$mode delphi}{$STATIC ON}
type
TMyClass = class
public
class procedure StaticCall; static;
end;
class procedure TMyClass.StaticCall;
begin
WriteLn('Static method was called!');
end;
begin
TMyClass.StaticCall;
end.
Mantis conversion info:
- Mantis ID: 10998
- OS: Mac OS X
- OS Build: 10.4.9
- Platform: MacBook
- Version: 2.2.0
- Fixed in version: 2.2.2
- Fixed in revision: 10923 (#0822153a)