Ada Programming/Attributes/'Width

Description
X'Width is an Ada attribute where X is any discrete type. This attribute represents the number of characters it takes to represent the "longest" type value using the X'Image attribute.

Example
My_Enum (Big, Bigger, Biggest); ... (My_Enum'Image (Biggest) = "BIGGEST" ); (My_Enum'Width = 7);

Wikibook

 * Ada Programming
 * Ada Programming/Attributes
 * Ada Programming/Attributes/'Image

Ada Reference Manual


|Width