On Tue, 1 May 2018 15:03:30 +0700 Ryan Joseph <r...@thealchemistguild.com> wrote:
> > On May 1, 2018, at 2:55 PM, Mattias Gaertner <nc-gaert...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal