+2019-07-10 Justin Squirek <squirek@adacore.com>
+
+ * doc/gnat_rm/implementation_defined_attributes.rst: Add mention
+ of 'Image attribute with 'Img's entry to mention additional
+ added 2012 usage of Obj'Image.
+ * doc/gnat_rm/implementation_defined_pragmas.rst: Correct
+ mispelling of Async_Writers.
+ * gnat_rm.texi: Regenerate.
+ * sem_prag.adb (Analyze_Pragma): Correct mispelling of
+ Async_Writers.
+ * sem_util.adb (State_Has_Enabled_Property): Correct mispelling
+ of Async_Writers.
+
2019-07-10 Simon Buist <buist@adacore.com>
* sem_util.ads (Child_Prefix): New constant.
=============
.. index:: Img
-The ``Img`` attribute differs from ``Image`` in that it is applied
-directly to an object, and yields the same result as
-``Image`` for the subtype of the object. This is convenient for
-debugging:
+The ``Img`` attribute differs from ``Image`` in that, while both can be
+applied directly to an object, ``Img`` cannot be applied to types.
+
+Example usage of the attribute:
.. code-block:: ada
Put_Line ("X = " & X'Img);
-has the same meaning as the more verbose:
+which has the same meaning as the more verbose:
.. code-block:: ada
.. code-block:: ada
- pragma Asynch_Readers [ (boolean_EXPRESSION) ];
+ pragma Async_Readers [ (boolean_EXPRESSION) ];
For the semantics of this pragma, see the entry for aspect ``Async_Readers`` in
the SPARK 2014 Reference Manual, section 7.1.2.
.. code-block:: ada
- pragma Asynch_Writers [ (boolean_EXPRESSION) ];
+ pragma Async_Writers [ (boolean_EXPRESSION) ];
For the semantics of this pragma, see the entry for aspect ``Async_Writers`` in
the SPARK 2014 Reference Manual, section 7.1.2.
Syntax:
@example
-pragma Asynch_Readers [ (boolean_EXPRESSION) ];
+pragma Async_Readers [ (boolean_EXPRESSION) ];
@end example
For the semantics of this pragma, see the entry for aspect @code{Async_Readers} in
Syntax:
@example
-pragma Asynch_Writers [ (boolean_EXPRESSION) ];
+pragma Async_Writers [ (boolean_EXPRESSION) ];
@end example
For the semantics of this pragma, see the entry for aspect @code{Async_Writers} in
@geindex Img
-The @code{Img} attribute differs from @code{Image} in that it is applied
-directly to an object, and yields the same result as
-@code{Image} for the subtype of the object. This is convenient for
-debugging:
+The @code{Img} attribute differs from @code{Image} in that, while both can be
+applied directly to an object, @code{Img} cannot be applied to types.
+
+Example usage of the attribute:
@example
Put_Line ("X = " & X'Img);
@end example
-has the same meaning as the more verbose:
+which has the same meaning as the more verbose:
@example
Put_Line ("X = " & T'Image (X));
-- Async_Readers/Async_Writers/Effective_Reads/Effective_Writes --
------------------------------------------------------------------
- -- pragma Asynch_Readers [ (boolean_EXPRESSION) ];
- -- pragma Asynch_Writers [ (boolean_EXPRESSION) ];
+ -- pragma Async_Readers [ (boolean_EXPRESSION) ];
+ -- pragma Async_Writers [ (boolean_EXPRESSION) ];
-- pragma Effective_Reads [ (boolean_EXPRESSION) ];
-- pragma Effective_Writes [ (boolean_EXPRESSION) ];
-- Simple option Synchronous
--
-- enables disables
- -- Asynch_Readers Effective_Reads
- -- Asynch_Writers Effective_Writes
+ -- Async_Readers Effective_Reads
+ -- Async_Writers Effective_Writes
--
-- Note that both forms of External have higher precedence than
-- Synchronous (SPARK RM 7.1.4(9)).