I have an issue in a rtti method call resolution. my rtti resolve code is the one implemented as solution in the following topic in this answer the author is using argument length as decisive comparator to select the overloaded method , BUT in my case I WANT TO use overloaded method using some default values which will not be resolved when facing the following :
first model (called) : User
contains as public :
procedure OnMyFocusChanged(); overload;
procedure OnMyFocusChanged(Caller : Integer ; id : Integer = -1); overload;
second model : User_block.pas
have this line : CTRL.Start('User','OnMyFocusChanged',[index]);
CTRL is a controller that contains some methods that works 100%, it will call the implemented method in the mentioned topic.
In the following case asking Rtti to resolve OnMyFocusChanged(index)
will not be resolved.
Is there a way to fix this ?