I wrote:
`--enable-implicit-result' (to be more explicit ;-).
Actually I now prefer `--[no]-implicit-result'. This is more in line with the other positive/negative options. I've implemented it now, and it fixes the cases discussed. It's on in `--delphi', off otherwise. (Or what about Mac Pascal, should it be on there?) But there's another problem. Does Delphi allow redeclaration of `Result' within the same function? (I hope not -- then we'll only have to change the test program.) Program RetVal; function K: Char; var Result: array [1 .. 7] of Char; begin Result := '....K..'; K := Result[5] end; begin WriteLn (K) end. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8