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

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


Hi,

Looking at the FPC Language Reference for Variable Declaration syntax:

  http://www.freepascal.org/docs-html/ref/refse21.html


Specifically, ABSOLUTE declarations. The documentation gives this example:

var
  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?


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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



More information about the fpc-pascal mailing list