Navigation:  Reference > Structure Definition Commands >

BEGIN UNION - Command

Previous pageReturn to chapter overviewNext page

BEGIN STRUCTURE <ClassName> [EXTENDING <SuperClass> ]

   BEGIN UNION

      MEMBER <TYPE>  AAA

      MEMBER <TYPE>  BBB

      MEMBER <TYPE>  CCC

   END UNION

      ...

END STRUCTURE

 

Description:

Members within BEGIN UNION .... END UNION commands will start at the same memory address and will take the size of the bigger of the members inside the union.

Union clauses cannot be nested inside the same structure declaration, but child members inside union can have also unions inside.