<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto">Yes, readed but, when a derivation is from a class, the implementation generated doesn't work. </div>
<div><br>
</div>
<div id="ms-outlook-mobile-signature" dir="auto">Obter o <a href="https://aka.ms/AAb9ysg">
Outlook para Android</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Pas2js <pas2js-bounces@lists.freepascal.org> on behalf of pas2js-request@lists.freepascal.org <pas2js-request@lists.freepascal.org><br>
<b>Sent:</b> Sunday, December 17, 2023 8:00:01 AM<br>
<b>To:</b> pas2js@lists.freepascal.org <pas2js@lists.freepascal.org><br>
<b>Subject:</b> Pas2js Digest, Vol 64, Issue 3</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send Pas2js mailing list submissions to<br>
pas2js@lists.freepascal.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js">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</a><br>
or, via email, send a message with subject or body 'help' to<br>
pas2js-request@lists.freepascal.org<br>
<br>
You can reach the person managing the list at<br>
pas2js-owner@lists.freepascal.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Pas2js digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. External class constructor inheritance (Henrique Gottardi Werlang)<br>
2. Re: External class constructor inheritance (Mattias Gaertner)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 16 Dec 2023 12:16:50 +0000<br>
From: Henrique Gottardi Werlang <henriquewerlang@hotmail.com><br>
To: "pas2js@lists.freepascal.org" <pas2js@lists.freepascal.org><br>
Subject: [Pas2js] External class constructor inheritance<br>
Message-ID:<br>
<CP4P284MB1731CC323ECACC16926C64B1B292A@CP4P284MB1731.BRAP284.PROD.OUTLOOK.COM><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello!<br>
<br>
I need some help with one situation I have here. I created an sample:<br>
<br>
unit Main;<br>
<br>
{$modeswitch externalclass}<br>
<br>
interface<br>
<br>
type<br>
TMyClass = class external name 'C'<br>
public<br>
constructor New(ConstructorParam: Integer);<br>
end;<br>
<br>
TMyAnotherClass = class(TMyClass)<br>
public<br>
constructor Create(ConstructorParam: Integer);<br>
end;<br>
<br>
implementation<br>
<br>
{ TMyAnotherClass }<br>
<br>
constructor TMyAnotherClass.Create(ConstructorParam: Integer);<br>
begin<br>
inherited;<br>
end;<br>
<br>
end.<br>
<br>
I need call the external class constructor from the Pascal class constructor. How do I do it?<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.freepascal.org/pipermail/pas2js/attachments/20231216/bb987b62/attachment-0001.htm">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</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 16 Dec 2023 14:56:23 +0100<br>
From: Mattias Gaertner <nc-gaertnma@netcologne.de><br>
To: pas2js@lists.freepascal.org<br>
Subject: Re: [Pas2js] External class constructor inheritance<br>
Message-ID: <15969685-26a1-4a5c-8e65-be3dbbf4afac@netcologne.de><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
<br>
<br>
On 16.12.23 13:16, Henrique Gottardi Werlang via Pas2js wrote:<br>
> Hello!<br>
> <br>
> I need some help with one situation I have here. I created an sample:<br>
> <br>
> unit Main;<br>
> <br>
> {$modeswitch externalclass}<br>
> <br>
> interface<br>
> <br>
> type<br>
> TMyClass = class external name 'C'<br>
> public<br>
> constructor New(ConstructorParam: Integer);<br>
> end;<br>
> <br>
> TMyAnotherClass = class(TMyClass)<br>
> public<br>
> constructor Create(ConstructorParam: Integer);<br>
> end;<br>
> <br>
> implementation<br>
> <br>
> { TMyAnotherClass }<br>
> <br>
> constructor TMyAnotherClass.Create(ConstructorParam: Integer);<br>
> begin<br>
> inherited;<br>
> end;<br>
> <br>
> end.<br>
> <br>
> I need call the external class constructor from the Pascal class constructor. How do I do it?<br>
<br>
Have you seen:<br>
<a href="https://wiki.freepascal.org/Pas2js_Transpiler#External_class_as_ancestor">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</a><br>
?<br>
<br>
Mattias<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Pas2js maillist - Pas2js@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js">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</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Pas2js Digest, Vol 64, Issue 3<br>
*************************************<br>
</div>
</span></font></div>
</body>
</html>