Re: [ooc-compiler] Windows headers
Brought to you by:
mva
|
From: Alexander I. <aj...@ya...> - 2011-08-03 09:51:08
|
Hello, Stewart! > > XDS Oberon-2 compiler supports unsigned integers in the form of SYSTEM.CARD8, > > SYSTEM.CARD16 and SYSTEM.CARD32. > Sound useful, especially for interfacing to foreign code. Often it makes > little difference (eg. integer addition), and providing nothing special > happens on overflow you can live with the results. Probably most > annoying is where you need constants that fill the entire width of the > type - these sometimes have to be converted to negative numbers to stop > the compiler complaining. As far as I remember from the docs oo2c treats hexadecimal constants as unsigned. I.e. to fill a 2-byte word, you can simply use 0FFFFH, which is quite readable. Or did you mean something else? ---=====--- Alexander |