a-tasatt.adb: Add a comment at the beginning of the package explaining why in general...
authorSamuel Tardieu <sam@rfc1149.net>
Tue, 13 Nov 2007 14:11:18 +0000 (14:11 +0000)
committerSamuel Tardieu <sam@gcc.gnu.org>
Tue, 13 Nov 2007 14:11:18 +0000 (14:11 +0000)
    gcc/ada/
* a-tasatt.adb: Add a comment at the beginning of the package
explaining why in general 'Unchecked_Access must be used instead
of 'Access.

From-SVN: r130139

gcc/ada/ChangeLog
gcc/ada/a-tasatt.adb

index 1ea33a6..1e8cd52 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
+
+       * a-tasatt.adb: Add a comment at the beginning of the package
+       explaining why in general 'Unchecked_Access must be used instead
+       of 'Access.
+
 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
 
        * a-tasatt.adb: Revert previous change for this file as it will
index 97e024c..cc6977f 100644 (file)
 --  "passed" in via access discriminants. GNAT was having trouble with access
 --  discriminants, so all this work was moved to the package body.
 
+--  Note that references to objects declared in this package body must in
+--  general use 'Unchecked_Access instead of 'Access as the package can be
+--  instantiated from within a local context.
+
 with System.Error_Reporting;
 --  Used for Shutdown;