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 error
Error: Identifier not found "TOrdinal"

And on both of them I get:
Fatal: Syntax error, "(" expected but ";" found

This does not happen on my own procedures, or other procedures at all that
I have tried.
Why doesn't the compiler like the above code ?
What is the difference between that and other procedures ?
And beside inline wrapper, is there a way to do this like so ?

Thanks,
Ido
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to