4.30. 4.30 Record Constants

HLA lets you define record constants. In fact, HLA supports both symbolic record constants and literal record constants. Record constants are useful as initializers for static record variables. They are also quite useful as compile time data structures when using the HLA compile time language (see the HLA Reference Manual for more details on the HLA compile time language). This section discusses how to create record constants.

A literal record constant takes the following form:

RecordTypeName:[ List_of_comma_separated_constants ]

The RecordTypeName is the name of a record data type you've defined in an HLA type section prior to this point.

The constant list appearing between the brackets are the data items for each of ...

Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.