]> gcc.gnu.org Git - gcc.git/commitdiff
[Ada] Update documentation of GNAT.Dynamic_Tables
authorJavier Miranda <miranda@adacore.com>
Fri, 13 May 2022 16:56:00 +0000 (16:56 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 2 Jun 2022 09:06:40 +0000 (09:06 +0000)
Document that dynamic tables are defined aliased for backward
compatibility.

gcc/ada/

* libgnat/g-dyntab.ads (Table_Type): Update documentation.

gcc/ada/libgnat/g-dyntab.ads

index 7cad73595189f371e58b266d4b6e6d5505aefc13..1cf4877e1dab09ad35185b2606bb849152ef9bbb 100644 (file)
@@ -82,10 +82,6 @@ package GNAT.Dynamic_Tables is
    --  freely (expensive reallocation occurs only at major granularity
    --  chunks controlled by the allocation parameters).
 
-   --  Note: we do not make the table components aliased, since this would
-   --  restrict the use of table for discriminated types. If it is necessary
-   --  to take the access of a table element, use Unrestricted_Access.
-
    --  WARNING: On HPPA, the virtual addressing approach used in this unit is
    --  incompatible with the indexing instructions on the HPPA. So when using
    --  this unit, compile your application with -mdisable-indexing.
@@ -120,9 +116,10 @@ package GNAT.Dynamic_Tables is
    --  freely (expensive reallocation occurs only at major granularity
    --  chunks controlled by the allocation parameters).
 
-   --  Note: we do not make the table components aliased, since this would
-   --  restrict the use of table for discriminated types. If it is necessary
-   --  to take the access of a table element, use Unrestricted_Access.
+   --  Note: For backward compatibility we do not make the table components
+   --  aliased, since for Ada 95 this would have restricted the use of tables
+   --  for discriminated types. If it is necessary to take the access of a
+   --  table element, use Unrestricted_Access.
 
    type Table_Type is
      array (Valid_Table_Index_Type range <>) of Table_Component_Type;
This page took 0.061994 seconds and 5 git commands to generate.