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> ________________________________
Earlier message 134 lines
From: Pas2js on behalf of
Sent: Sunday, December 17, 2023 8:00:01 AM
To:
Subject: Pas2js Digest, Vol 64, Issue 3
Send Pas2js mailing list submissions to
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
You can reach the person managing the list at
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
To: ""
Subject: [Pas2js] External class constructor inheritance
Message-ID:
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
To:
Subject: Re: [Pas2js] External class constructor inheritance
Message-ID:
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
