<div dir="ltr">Hello,<br><br>I'm trying to do the following:<br><br>---------<br>var<br> a : procedure(var x : TOrdinal);<br> b : procedure(var x : integer);<br><br>begin<br> a := @inc;<br> b := @dec;<br><br>end.<br>
-----------<br><br>I simplified the original code of mine to this specific example to make it more clear.<br><br>At variable a, I get the following error<br>Error: Identifier not found "TOrdinal"<br><br>And on both of them I get:<br>
Fatal: Syntax error, "(" expected but ";" found<br><br>This does not happen on my own procedures, or other procedures at all that I have tried.<br>Why doesn't the compiler like the above code ? <br>
What is the difference between that and other procedures ?<br>And beside inline wrapper, is there a way to do this like so ?<br><br>Thanks,<br>Ido<br><br>
</div>