[Pas2js] Class constant with "external" class
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Jan 27 12:41:42 CET 2018
On Sat, 27 Jan 2018 10:46:23 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:
> On Fri, 26 Jan 2018, warleyalex via Pas2js wrote:
>
> > the codegen does not emit corresponding const.
> >
> > type
> > TBase = class external name 'TBase'
> > public
> > (* class var cPublic : String = '{"name":"warleyx"}'; *) // not supported
> > class const cTemp = '{"page:about2"}';
>
> What is that definition supposed to mean ?
>
> An external class is exactly that:
> The import definition of an existing javascript class.
Yes, only type information is added.
pas2js will now give an error.
Mattias
More information about the Pas2js
mailing list