[fpc-pascal] procedure variable and inc/dec procedures
Howard Page-Clark
hdpc at talktalk.net
Tue Jan 17 23:23:50 CET 2012
On 17/1/12 9:47, ik wrote:
> var
> a : procedure(var x : TOrdinal);
> b : procedure(var x : integer);
>
> begin
> a := @inc;
> b := @dec;
> Why doesn't the compiler like the above code ?
Inc and Dec are internal compiler routines, more like macros than true
functions. They are not coded as library functions you can locate in the
RTL at an addressable location.
More information about the fpc-pascal
mailing list