Thanks to Marco for pointing out a stupidity (and for not sending it to the list!) but I was also checking on the subranges (really!) where the values are not trapped it seems and I don't seem to be able to check them (apart from in the coding of course). Is there a way to do this? It seems the Borland {$r+} is not recognised.
John
On Tue, 7 Nov 2000, Marco van de Voort wrote:
Maybe I am using a slightly old version (2.95.2 19991024 (release)) but the following little program indicates there is something awry with the upper limits of cardinals.
At least cardinal(32) and cardinal(64) should be able to calculate up to 4294967296 and 18446744073709551616 respectively. Note if I try and assign these directly within the program, the program doesn't compile with errors:
You name even numbers here? The highest number in a cardinal is always odd!
The biggest number in a cardinal(n) is 2^n MINUS ONE!!!