Spec-Zone.ru › Ada 2022
Ada Reference Manual (Ada 2022)

J.15.8 Shared Variable Pragmas

Syntax

The following pragmas are defined with the given forms:
pragma Atomic (local_name);
pragma Volatile (local_name);
pragma Independent (component_local_name);
pragma Atomic_Components (array_local_name);
pragma Volatile_Components (array_local_name);
pragma Independent_Components (local_name);

Name Resolution Rules

The local_name in an Atomic or Volatile pragma shall resolve to denote either an object_declaration, a noninherited component_declaration, or a full_type_declaration. The component_local_name in an Independent pragma shall resolve to denote a noninherited component_declaration. The array_local_name in an Atomic_Components or Volatile_Components pragma shall resolve to denote the declaration of an array type or an array object of an anonymous type. The local_name in an Independent_Components pragma shall resolve to denote the declaration of an array or record type or an array object of an anonymous type.

Static Semantics

These pragmas are representation pragmas (see 13.1). Each of these pragmas specifies that the similarly named aspect (see C.6) of the type, object, or component denoted by its argument is True.

Legality Rules

The local_name of each of these pragmas shall denote a declaration that may have the similarly named aspect specified.


Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API