-
Key: IDL42-9
-
Status: closed
-
Source: Real-Time Innovations ( Dr. Gerardo Pardo-Castellote, Ph.D.)
-
Summary:
IDL uses the keywords short, long, and long long to designate integer types of sizes 16, 32, and 64 bits, respectively.
In IDL the size of these integer types is well specified. However these names confuse users familiar with languages such as C and C++ where the size of these integers is platform specific. As a result many users end-up defining their own typedefs for different size integers (e.g. INT16, or Int16) resulting in IDLs that are non-uniform do not leverage the built-in types.
To avoid this, IDL should follow the approach taken in C/C++ and introduce typedefs whose name unambiguously indicates the size of the representation.
Proposed "builtin typedefs" would be:
typedef short int16; typedef unsigned short uint16; typedef long int32; typedef unsigned long uint32; typedef long long int64; typedef unsigned long long uint64;
-
Reported: IDL 4.1 — Mon, 14 Aug 2017 00:33 GMT
-
Disposition: Resolved — IDL 4.2
-
Disposition Summary:
Add new keywords for the integer types
Add new keywords for int16, int32, int64, uint16, uint32, and uint64. This should go in the "Building Block Extended Data Types" so that it does not impact existing applications.
-
Updated: Tue, 19 Dec 2017 20:04 GMT
IDL42 — IDL should have aliases/typedefs for integer that disambiguate representation size
- Key: IDL42-9
- OMG Task Force: Interface Definition Language 4.2 RTF