Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Ada Programming/Attributes/'To Address

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Attributes 'To_Address __TOC__ Description System'To_Address (X) is a GNAT specific attribute with the same purpose of function System.Storage_Elements.To_Address. The only difference is that it can be used in preelaborated units where non-static calls are not allowed. X is a value of that type System.Storage_Elements.Integer_Address (an implementation-defined integer type), and note that this attribute is not applied to the type of X but always to package System. Example Using the standard Ada To_Address function: for Sensor'Address use System Storage_Elements.To_Address (16#0FF2_1234#); Using the GNAT specific To_Address attribute: for Sensor'Address use System'To_Address (16#0FF2_1234#); See also Wikibook Ada Programming Ada Programming/Libraries/System.Storage_Elements GNAT Reference Manual GNAT Implementation Defined Attributes: To_Address To_Address