akarl
2005-07-25 01:27:52 UTC
Hi all,
My interpretation of section 10.3 (Predeclared Procedures) of the
Oberon-2 report (March '95) is that MAX and MIN are defined for any
basic type, which of course is wrong since MAX(BOOLEAN) and MIN(BOOLEAN)
doesn't make sense. I think
Name Argument type ...
MAX(T) T = basic type ...
T = SET ...
MIN(T) T = basic type ...
T = SET ...
should be changed to
Name Argument type ...
MAX(T) T = numeric type or CHAR ...
T = SET ...
MIN(T) T = numeric type or CHAR ...
T = SET ...
Comments?
Regards,
August
My interpretation of section 10.3 (Predeclared Procedures) of the
Oberon-2 report (March '95) is that MAX and MIN are defined for any
basic type, which of course is wrong since MAX(BOOLEAN) and MIN(BOOLEAN)
doesn't make sense. I think
Name Argument type ...
MAX(T) T = basic type ...
T = SET ...
MIN(T) T = basic type ...
T = SET ...
should be changed to
Name Argument type ...
MAX(T) T = numeric type or CHAR ...
T = SET ...
MIN(T) T = numeric type or CHAR ...
T = SET ...
Comments?
Regards,
August