[fpc-pascal] Next language feature for pas2js...

Mattias Gaertner nc-gaertnma at netcologne.de
Tue May 1 11:00:45 CEST 2018


On Tue, 1 May 2018 15:36:59 +0700
Ryan Joseph <ryan at thealchemistguild.com> wrote:

>[...]
> > Constants without expression can only exist in an external class.  
> 
> Just curious but why can’t you declare a const anywhere for any reasons?

You can.


> >> Also I mistyped, GLfloat is a type so how do this map to JS, or do I even need to since the names are the same?  
> > 
> > You need to define types.
> > 
> > type
> >  GLfloat = double;  
> 
> Why do we need to redefine the type if it’s already defined in the JS library? 

JS has (almost) no types. WebGL has some intrinsic types. The unit
webgl will be defining the corresponding Pascal types.

Mattias



More information about the fpc-pascal mailing list