tb0184.pp 474 B

1234567891011121314151617181920212223
  1. { Old file: tbs0217.pp }
  2. { in tp mode can't use the procvar in writeln OK 0.99.11 (PFV) }
  3. {$ifdef fpc}{$mode tp}{$endif}
  4. {$F+}
  5. type tmpproc=function:longint;
  6. function a:longint;{$ifndef fpc}far;{$endif}
  7. begin
  8. a:=-1;
  9. end;
  10. procedure tmp(aa: tmpproc);
  11. begin
  12. writeln(aa); { "Cannot read/write variables of this type", TP kan dit
  13. wel? }
  14. if aa<>-1 then halt(1);
  15. end;
  16. begin
  17. tmp(a); { de TP manier , in FPC moet dit zijn tmp(@a); }
  18. end.