Recursive Function Call does not execute correctly
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
The example program does not execute as expected.
It should call the FUNCTION recursion 4 times in
total and produce the following output :
< Recursion 3
< Recursion 2
< Recursion 1
< End Of Recursion
However the FUNCTION does not call itself correctly,
so in fact the following output is produced :
< Recursion 3
The compliler is not correctly recognising a standard
PASCAL parameterless FUNCTION call in the line :
recursion := recursion;
However, C-Style syntax for a parameterless
FUNCTION call does work :
recursion := recursion();
Additional information:
Reporter: Steve Walmsley
EMail: steve dot walmsley at bbc dot co dot uk
Mantis conversion info:
- Mantis ID: 3445
- OS: Linux
- Version: ?
- Fixed in version: N/A