I
I
Interface2016-04-05 03:16:58
Delphi
Interface, 2016-04-05 03:16:58

Delphi what methods will get into RTTI?

Good afternoon!
I'm interested in the principles by which methods are submitted to RTTI. We are talking about the "old" RTTI (before Delphi 2010 or in the current FPC). As far as I understand at the moment, all fields from the published section should get into RTTI, apparently this is not the case.
Now there is a code:

{$M+}
  TMyClass = class	
    published
      procedure testfn(a,b,c: Integer);
  end;
{$M-}
...
GetPropInfo(TMyClass, 'testfn'); // возвращает nil

I would like to understand what needs to be changed in order to get the PPropInfo for the method.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question