Union

From AtlasWiki
Revision as of 15:00, 5 March 2014 by Xingyan (Talk | contribs)

Jump to: navigation, search

The semantics of Union are those common to C++ unions and Ada discriminated records.


Specification

Metaclass Union
Extends Classfier, StructuredType
Description A structure that stores the value of exactly one of a set of fields at any given time

Language Mappings

Union maps to the C++ concept of union. A discriminated union corresponds to an Ada discriminated record.


See Also