[Pas2js] External class constructor inheritance

Henrique Gottardi Werlang henriquewerlang at hotmail.com
Sat Dec 16 13:16:50 CET 2023


Hello!

I need some help with one situation I have here. I created an sample:

unit Main;

{$modeswitch externalclass}

interface

type
   TMyClass = class external name 'C'
   public
     constructor New(ConstructorParam: Integer);
   end;

  TMyAnotherClass = class(TMyClass)
  public
    constructor Create(ConstructorParam: Integer);
  end;

implementation

{ TMyAnotherClass }

constructor TMyAnotherClass.Create(ConstructorParam: Integer);
begin
  inherited;
end;

end.

I need call the external class constructor from the Pascal class constructor. How do I do it?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20231216/bb987b62/attachment.htm>


More information about the Pas2js mailing list