1 -- Copyright 2017-2021 Free Software Foundation, Inc.
3 -- This program is free software; you can redistribute it and/or modify
4 -- it under the terms of the GNU General Public License as published by
5 -- the Free Software Foundation; either version 3 of the License, or
6 -- (at your option) any later version.
8 -- This program is distributed in the hope that it will be useful,
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 -- GNU General Public License for more details.
13 -- You should have received a copy of the GNU General Public License
14 -- along with this program. If not, see <http://www.gnu.org/licenses/>.
21 type Top_T is tagged private;
22 type Top_A is access Top_T'Class;
23 procedure Assign (Obj: in out Top_T; TV : Integer);
25 type Top_T is tagged record
32 type Middle_T is new Top.Top_T with private;
33 type Middle_A is access Middle_T'Class;
34 procedure Assign (Obj: in out Middle_T; MV : Character);
36 type Middle_T is new Top.Top_T with record
41 type Bottom_T is new Middle.Middle_T with record
46 type Bottom_A is access Bottom_T'Class;
47 procedure Assign (Obj: in out Bottom_T; BV : Float);
49 procedure Do_Nothing (A : System.Address);
51 type Integer_Array is array (Natural range <>) of Integer;
54 type Dyn_Top_T (Disc : Natural) is tagged private;
55 type Dyn_Top_A is access Dyn_Top_T'Class;
56 procedure Assign (Obj: in out Dyn_Top_T; TV : Integer);
58 type Dyn_Top_T (Disc : Natural) is tagged record
59 S : Integer_Array (1 .. Disc) := (others => Disc);
66 type Dyn_Middle_T is new Dyn_Top.Dyn_Top_T with private;
67 type Dyn_Middle_A is access Dyn_Middle_T'Class;
68 procedure Assign (Obj: in out Dyn_Middle_T; MV : Character);
70 type Dyn_Middle_T is new Dyn_Top.Dyn_Top_T with record