Version 1.2 of acs/ac-00293.txt

Unformatted version of acs/ac-00293.txt version 1.2
Other versions for file acs/ac-00293.txt

!standard B.1(14.1/4)          17-09-05 AC95-00293/00
!class Amendment 17-09-05
!status received no action 17-09-05
!status received 17-08-08
!subject Convention=>C for enumeration types
!summary
!appendix

!topic Convention=>C for enumeration types
!reference Ada 2012 RM
!from Victor Porton 17-08-08
!keywords enumeration type, C interface, representation
!discussion

It should be explicitly stated that enumeration types can have
Convention=>C aspect and in this case the representation of an Ada
enumeration type shall be the same as representation of the
corresponding C enumeration type.

***************************************************************

From: Randy Brukardt
Sent: Tuesday, August 8, 2017  4:29 PM

Somebody asked about this in 2014. Some guy named "Victor Porton" in fact.
That comment was processed, solved, and approved in 2015 (see AI12-0135-1),
and it was part of the 2016 Corrigendum. So this is already true in Ada 2012
as corrected.

You can see that enumeration types can be given conventions if you look at
section B.1 in the consolidated RM (specifically,
http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-B-1.html#p14.1).
Whether your favorite compiler supports that is another matter altogether, if
not, you need to complain to them.

P.S. Repeating the exact same comment is not helpful, as we have to file every
comment made here whether or not it it is redundant.

***************************************************************

Questions? Ask the ACAA Technical Agent