[Oberon] Negative integer literals in Oberon

August Karlstrom fusionfile at gmail.com
Mon Apr 27 22:29:59 CEST 2020


On 2020-04-27 22:10, Jörg wrote:
> 
>>     ASSERT(0FFFFFFFFH = -1) (*require two's complement *)
> 
> On strict compilers this statement does not even compile as 0FFFFFFFFH is not a valid INTEGER.

Other compilers, like OBNC (32-bit version), accepts 0FFFFFFFFH for 
pragmatic reasons. I agree that it's not ideal though.

> Could somebody give me a good example, where INTEGERs need a hex notation?

Good question!


-- August


More information about the Oberon mailing list