On 16/09/2013 18:58, silvioprog wrote:
2013/9/16 Martin <[email protected] <mailto:[email protected]>>

    What do you mean "passing the self const as default"?


I'm trying it:

  TMyClass = class
  private
    FData: string;
  public
    procedure WriteLn(const S: string);

...
var
  obj: TMyClass;

  ps.SetVarToInstance('SELF', obj);

So when I call "WriteLn", it must call WriteLn of my "obj" instance.

Please see the full code in attached in previous e-mail.

yes found it.

Never used SetVarToInstance, dont know if it does what you want.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to