[Pas2js] Forward external class
Michael Van Canneyt
michael at freepascal.org
Thu Jul 8 15:38:07 CEST 2021
On Thu, 8 Jul 2021, Henrique Gottardi Werlang wrote:
> Hello!
>
> I would like to know how I should proceed to a suggestion of implementation.
>
> I have a situation, which would make it very easy for me if it were possible to declare external classes, with early declaration.
>
> Like this:
>
> unit MyUnit;
>
> interface
>
> {$modeswitch externalclass}
>
> type
> TMyClass = class;
This will work. No need to add the external keyword. See the web unit, it is
full of it.
Michael.
More information about the Pas2js
mailing list