[Oberon] Negative integer literals in Oberon
andreas_pirklbauer at yahoo.com
Wed Apr 29 11:16:25 CEST 2020
> But I would say that you might want to investigate how the Ada people do it.
Having once been part of an Ada compiler project on VAX/VMS, I can say
that the implementation turned out to be clean, but somewhat complex.
Ada does not provide bit-wise operations (AND, OR, ..) on integer types,
but for so-called “modular types”. A modular type is an integer type with all
arithmetic modulo a specified positive modulus; such a type corresponds
to an *unsigned* type with wrap-around semantics.
More information about the Oberon