Re: C mapping of enums...



On Wed, 7 Feb 2001, Mark McLoughlin wrote:

> I assume the reason it was specified this way was that there is no
> guarantee to the storage size of an enum in C. By typedefing your
> enum as a CORBA_long you get the 32 bit unsigned integer required by
> the specification.

That's reasonable speculation, but I don't think it's cause for change.
CORBA doesn't care about storage sizes of data types, just their
minimum data range and representation on the wire, and an enum can surely
hold at least 32 bits.

Not seeing any real problem still,
-- Elliot
Who me? I just wander from room to room.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]