tbs0217.pp 368 B

12345678910111213141516171819
  1. {$ifdef fpc}{$mode tp}{$endif}
  2. type tmpproc=function:longint;
  3. function a:longint;{$ifndef fpc}far;{$endif}
  4. begin
  5. a:=-1;
  6. end;
  7. procedure tmp(aa: tmpproc);
  8. begin
  9. writeln(aa); { "Cannot read/write variables of this type", TP kan dit
  10. wel? }
  11. if aa<>-1 then halt(1);
  12. end;
  13. begin
  14. tmp(a); { de TP manier , in FPC moet dit zijn tmp(@a); }
  15. end.