Next: Attribute Unrestricted_Access, Previous: Attribute Unconstrained_Array, Up: Implementation Defined Attributes [Contents][Index]
The prefix of Universal_Literal_String
must be a named
number. The static result is the string consisting of the characters of
the number as defined in the original source. This allows the user
program to access the actual text of named numbers without intermediate
conversions and without the need to enclose the strings in quotes (which
would preclude their use as numbers).
For example, the following program prints the first 50 digits of pi:
with Text_IO; use Text_IO; with Ada.Numerics; procedure Pi is begin Put (Ada.Numerics.Pi'Universal_Literal_String); end;