On Tue, 13 Nov 2001, Frank Heckenbach wrote:
Mirsad Todorovac wrote:
Also initialization fails, but IMHO all this bugs have something in common; so I went forth with these examples only in hope that they will help nail the bug.
In Pascal, normal variables are not guaranteed to be initialized. Though the sets are in fact empty on my system, I think that's more the OS feature of clearing a new process's storage rather than a language feature. So I'm adding an explicit declaration:
VAR seta, setb, setc: SET OF 0..maxN value [];
This applies to mirsad0[245].
Got that. And have tested it on both Solaris and Alpha OSF/1. Initializations passed on both systems.
mirsad0[45]: I'm changing the type of start to endr to 0 .. maxN. This is just to avoid the `constructing limited set' warning. That's a known issue, and we don't need yet another test program that exhibits it ...
I've synced with your version, so if there will be more examples/tests, I will adopt that practice as a standard ...
Apart from this, the tests run ok on IA32 (Linux and DJGPP) as well, and I'll look at them on the Alpha soon.
Modified versions run ok on Solaris too.
Mirsad
-- This message has been made up using recycled ideas and language constructs. No plant or animal has been injured in process of making this message.