[fpc-pascal] variable declarations with 'absolute' syntax

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Oct 13 16:18:36 CEST 2015


Looking at the FPC Language Reference for Variable Declaration syntax:


Specifically, ABSOLUTE declarations. The documentation gives this example:

  curterm1 : integer;
  curterm6 : integer absolute curterm1;

Now according to the syntax diagram the syntax after ABSOLUTE can be an
Identifier or an Integer Expression. So the above is an example where an
Identifier is used. So what is (code example) of valid syntax when the
Integer Expression syntax is used?

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list