Does anyone know when they added the "result" keyword for function return values? I'm asking because we have some very old code (some of it written in the 80's), that passes back the function value using the function name, and it drives me nuts (especially since I'm also renaming some of these function names ).

Comments

  1. Alexander Elagin
    Just checked in TP 7.0 with +Extended syntax option - "Unknown identifier" compiler error for Result using.

    ReplyDelete
  2. Boris Novgorodov It would be strange to get any other result if the TP7 documentation clearly says that the only way to set the function result is to assign a value to the function identifier ;-)

    ReplyDelete
  3. Borland Pascal 7 did not support it. AFAIR neither did Turbo Pascal for Windows. Delphi 1 definitely did.
    Now I feel old.

    ReplyDelete

Post a Comment