411 REFERENCE · Wikibooks
Ada Programming/Attributes/'Has Discriminants
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Description
The prefix of the Has_Discriminants attribute is a type. The result is a Boolean value which is True if the type has discriminants, and False otherwise. The intended use of this attribute is in conjunction with generic definitions. If the attribute is applied to a generic private type, it indicates whether or not the corresponding actual type has discriminants.