[Lazarus] PascalScript and Self instance

silvioprog silvioprog at gmail.com
Mon Sep 16 19:58:48 CEST 2013


2013/9/16 Martin <lazarus at mfriebe.de>

>  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.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130916/9989ec61/attachment-0003.html>


More information about the Lazarus mailing list