On Tue, 1 May 2018 15:36:59 +0700 Ryan Joseph <r...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal