Marco van de Voort wrote:
I mean that changing the TYPE of both methods will cause other procedures to fail, causing an incompability with FV.
Keeping the argument a untyped pointer, and then typecasting to a proctype will probably not work, [...]
It does work.
How does it work effectively? So something like:
procedure proc1(x:longint);
procedure proc2(x:longint);
begin end;
begin end;
type myproctype=procedure(x:longint);
procedure proc3(x:pointer);
begin myproctype(x);
(Missing argument here.)
end;
begin proc3(@proc1); proc3(@proc2); end;
Like this, it won't work since proc2 isn't even visible to the main program. But you can call `proc3(@proc2);' from proc1 (if you declare proc3 before proc1, of course).
Frank