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

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Apr 26 13:50:31 CEST 2018


On Thu, 26 Apr 2018 13:13:25 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> On Thu, 26 Apr 2018, Benito van der Zander wrote:
> 
> >
> > Hi,
> >
> > I would like to vote for pointer support...  
> 
> "Pointers to records" are supported.

Basically pointers are implemented as JS references.
For example a pointer can be assigned a class instance, an array, a
procedure var, a method var, a @proc address, a @method address,
record, etc.

That's why there is no pointer arithmetic, i.e. no p+1.

Mattias


More information about the fpc-pascal mailing list