Recent

Author Topic: Compiler can't find TPU files  (Read 7495 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14357
  • Sensorship about opinions does not belong here.
Re: Compiler can't find TPU files
« Reply #15 on: April 21, 2018, 12:26:46 pm »
Rename result with the name of the function they are in. Result is a construct of newer incarnations of the language than TP. Or simple use a more modern mode ({$Mode objFPC} or {$Mode Delphi})
Not necessary. Simply add {$modeswitch result} on top of affected units. I hinted already at some little problems, but the code itself simply works in both 16 and 32 bit Freepascal. I didn't test 64 bit, though. (probably won't work, it is soooo old). {$mode delphi} is also OK it seems. The code is Delphi 2 compatible.
« Last Edit: April 21, 2018, 12:29:14 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018