[fpc-devel] const specialize = 1;

Martin Frb lazarus at mfriebe.de
Wed May 4 04:05:06 CEST 2022

is it allowed to use the identifier "specialize" as constant (or type or 

Because it compiles with 3.3.1. (the line that defines the constant).

But it seems it can't be used.
At least it fails in the below scenario, when trying to use as value.

program foo;
{$mode objfpc}{$H+}
const specialize = 1; // compiles
var a: integer;
   if a = specialize then // error // comment out for fail on next line
     a:=specialize; // error

More information about the fpc-devel mailing list