Re: [fpc-pascal] procedure variable and inc/dec procedures

2012-01-17 Thread Howard Page-Clark
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 li

[fpc-pascal] procedure variable and inc/dec procedures

2012-01-17 Thread ik
Hello, I'm trying to do the following: - var a : procedure(var x : TOrdinal); b : procedure(var x : integer); begin a := @inc; b := @dec; end. --- I simplified the original code of mine to this specific example to make it more clear. At variable a, I get the following