On 22 Jun 2004 at 16:45, Mingeborg@aol.com wrote:
I am getting a recursion problem I don't understand. (gpc-20040516, LINUX on a Pentium 4 laptop.)
This is a (silly) example program (enclosed as a gzipped tar file.):
program subset_problem(input,output); const setlimit = 4; type subset = set of 0..255;
var seta, setb: subset;
function recursive_setprint(set1: subset):subset;
[...]
I'm expecting: first element: 0 first element: 1 first element: 2 first element: 3 first element: 4 (This is the output I am getting with Digital Pascal.)
The output is the same with Virtual Pascal, Delphi, and FreePascal - so something is up with the GPC output.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/