[fpc-devel] RTTI method paramlist broken?
Paul Ishenin
webpirat at mail.ru
Sat Sep 12 15:10:57 CEST 2009
Paul Ishenin wrote:
> Just tested with D2009:
>
> TStdcallMethod = procedure(Sender: TObject; Something: LongInt) of
> object; stdcall;
>
> If it is stdcall then methods must be listed in the rtti right-to-left
> but delphi stored Sender as first and Something as second.
To prove my founds I just wrote a small test application which compiles
on D7, D2009, D2010 and FPC.
Please also note that all delphi versions stores calling convention in
the rtti but info regards that only appeared in the D2010 comments.
Delphi output is:
procedure(address Sender: TObject; Something: Integer); register;
procedure(address Sender: TObject; Something: Integer); cdecl;
procedure(address Sender: TObject; Something: Integer); pascal;
procedure(address Sender: TObject; Something: Integer); stdcall;
procedure(address Sender: TObject; Something: Integer); safecall;
FPC output is:
procedure(address Sender: TObject; Something: LongInt);
procedure(Something: LongInt; address Sender: TObject);
procedure(address Sender: TObject; Something: LongInt);
procedure(Something: LongInt; address Sender: TObject);
procedure(Something: LongInt; address Sender: TObject);
Best regards,
Paul Ishenin.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtti_test.dpr
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090912/f2a80295/attachment.ksh>
More information about the fpc-devel
mailing list