frrrstfn
2010-06-10 08:42:19 UTC
I'm trying to writet an Oberon 07 compiler for Microsoft Windows OS.
Cause Wirth removed SHORTINT and LONGINT integers a problem arise when
interfacing to Microsoft Windows API where some functions have short
integer parameters (8 and 16 bits).
A possible solution is to add new types to pseudo SYSTEM module,
something like SYSTEM.INT8 and SYSTEM.INT16, and add a procedure
SYSTEM.SHORT to convert Oberon 07 INTEGER when calling Windows API
functions requiring short integer parameters.
What do you think about it?
Cause Wirth removed SHORTINT and LONGINT integers a problem arise when
interfacing to Microsoft Windows API where some functions have short
integer parameters (8 and 16 bits).
A possible solution is to add new types to pseudo SYSTEM module,
something like SYSTEM.INT8 and SYSTEM.INT16, and add a procedure
SYSTEM.SHORT to convert Oberon 07 INTEGER when calling Windows API
functions requiring short integer parameters.
What do you think about it?