[fpc-pascal] Next language feature for pas2js...
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue May 1 10:17:33 CEST 2018
On Tue, 1 May 2018 15:03:30 +0700
Ryan Joseph <ryan at thealchemistguild.com> wrote:
> > On May 1, 2018, at 2:55 PM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> >
> > GLFloat is a type, not a const.
> >
> > type GLFloat = double;
>
> Yeah I mistyped. We shouldn’t be redefining GLfloat though (I doubt it’s a double in OpenGLES/WebGL either) so how does this (or other types) translate for the parser?
JS only knows double for numbers.
At compile time you can use almost all the normal types: byte,
word, longint, etc.
pas2js has an alias single, but because internally it is a double this
gives warnings.
Mattias
More information about the fpc-pascal
mailing list