Post by August KarlstromIn Oberon-07/16, is the operator IN supposed to handle elements which
are out of range, for instance 10000 IN A? Or is the result undefined?
Since Revision 1.10.2013 / 18.3.2015 of the 'Programming Language Oberon' the values of a SET have been defined as "the sets of integers between 0 and an implementation-dependent limit". The result of 10000 IN A might not be out of range for a particular implementation. You would need to check the implementation-specific documentation or contact technical support for the compiler you are using if you want an answer to your question.
In the case of the current Astrobe Oberon compilers for ARM Cortex-M3, M4 and M7, and FPGA RISC5 targets, the limit is 31. No compile time or runtime error results if a value greater than 31 is used in an IN expression, but the result of that expression is not defined.
Regards,
Chris Burrows
CFB Software
http://www.astrobe.com