[Pas2js] Pas2js Digest, Vol 64, Issue 3

Henrique Gottardi Werlang henriquewerlang at hotmail.com
Sun Dec 17 14:09:17 CET 2023


Yes, readed but, when a derivation is from a class, the implementation generated doesn't work.

Obter o Outlook para Android<https://aka.ms/AAb9ysg>
________________________________
From: Pas2js <pas2js-bounces at lists.freepascal.org> on behalf of pas2js-request at lists.freepascal.org <pas2js-request at lists.freepascal.org>
Sent: Sunday, December 17, 2023 8:00:01 AM
To: pas2js at lists.freepascal.org <pas2js at lists.freepascal.org>
Subject: Pas2js Digest, Vol 64, Issue 3

Send Pas2js mailing list submissions to
        pas2js at lists.freepascal.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freepascal.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpas2js&data=05%7C02%7C%7C2a5f482483c04f80c00f08dbfeef5909%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638384076195562200%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uVZl9a7OjY%2BAu5YPmLDfoJ%2B9YW6%2BgQPFO37y2KizrcE%3D&reserved=0<https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js>
or, via email, send a message with subject or body 'help' to
        pas2js-request at lists.freepascal.org

You can reach the person managing the list at
        pas2js-owner at lists.freepascal.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pas2js digest..."


Today's Topics:

   1. External class constructor inheritance (Henrique Gottardi Werlang)
   2. Re: External class constructor inheritance (Mattias Gaertner)


----------------------------------------------------------------------

Message: 1
Date: Sat, 16 Dec 2023 12:16:50 +0000
From: Henrique Gottardi Werlang <henriquewerlang at hotmail.com>
To: "pas2js at lists.freepascal.org" <pas2js at lists.freepascal.org>
Subject: [Pas2js] External class constructor inheritance
Message-ID:
        <CP4P284MB1731CC323ECACC16926C64B1B292A at CP4P284MB1731.BRAP284.PROD.OUTLOOK.COM>

Content-Type: text/plain; charset="iso-8859-1"

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: <https://bra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freepascal.org%2Fpipermail%2Fpas2js%2Fattachments%2F20231216%2Fbb987b62%2Fattachment-0001.htm&data=05%7C02%7C%7C2a5f482483c04f80c00f08dbfeef5909%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638384076195562200%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jeymoaeZHNiPC36f7XC%2BzXBDPmBBfwi3PR17G8xH%2BWc%3D&reserved=0<http://lists.freepascal.org/pipermail/pas2js/attachments/20231216/bb987b62/attachment-0001.htm>>

------------------------------

Message: 2
Date: Sat, 16 Dec 2023 14:56:23 +0100
From: Mattias Gaertner <nc-gaertnma at netcologne.de>
To: pas2js at lists.freepascal.org
Subject: Re: [Pas2js] External class constructor inheritance
Message-ID: <15969685-26a1-4a5c-8e65-be3dbbf4afac at netcologne.de>
Content-Type: text/plain; charset=UTF-8; format=flowed



On 16.12.23 13:16, Henrique Gottardi Werlang via Pas2js wrote:
> 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?

Have you seen:
https://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.freepascal.org%2FPas2js_Transpiler%23External_class_as_ancestor&data=05%7C02%7C%7C2a5f482483c04f80c00f08dbfeef5909%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638384076195562200%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VxQGp4JE1aGQTC2JULQ9tsYGJFdvy4lJHPHesdrTrcM%3D&reserved=0<https://wiki.freepascal.org/Pas2js_Transpiler#External_class_as_ancestor>
?

Mattias


------------------------------

Subject: Digest Footer

_______________________________________________
Pas2js maillist  -  Pas2js at lists.freepascal.org
https://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freepascal.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpas2js&data=05%7C02%7C%7C2a5f482483c04f80c00f08dbfeef5909%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638384076195562200%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uVZl9a7OjY%2BAu5YPmLDfoJ%2B9YW6%2BgQPFO37y2KizrcE%3D&reserved=0<https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js>


------------------------------

End of Pas2js Digest, Vol 64, Issue 3
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20231217/e3b5192c/attachment.htm>


More information about the Pas2js mailing list