On Wed, 16 Dec 2020 10:24:39 +0100 (CET) Michael Van Canneyt via fpc-devel <[email protected]> wrote:
>[...] > Function MyResult : String; > > begin > Result:=''; > MyResult:=''; > end; > > You can still use the function name for the result, so "Result" is in > fact an alias for the function name, which is the actual name for the > result value. That is not entirely correct. Function MyResult : String; begin Result:=Result; // the current result MyResult:=MyResult; // recursive call end; Mattias _______________________________________________ fpc-devel maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
