Ada Programming/Attributes/'Access

Description
X'Access is an Ada attribute where X is any object or subprogram.

'Access may be used to return an access value designating the object or subprogram.

Example
General_Pointer         Integer; Constant_Pointer   Integer; I1:  Integer := 10; I2: Integer; P1: General_Pointer := I1';  -- illegal P2: Constant_Pointer := I1'; -- OK, read only P3: General_Pointer := I2';  -- OK, read and write P4: Constant_Pointer := I2'; -- OK, read only P5: General_Pointer := I2'Access;  -- read and write only to I2

Callback_Procedure   (Id  : Integer;                                              Text: String); Process_Event (Id : Integer;                          Text: String); My_Callback: Callback_Procedure := Process_Event';

Wikibook

 * Ada Programming
 * Ada Programming/Attributes
 * Ada Programming/Types/access

Ada Reference Manual


|Address Address