--  A private type with known discriminants (RM 7.3, 7.3(13)): clients constrain it and read
--  its discriminant; the rest of its full view stays hidden.
with Ada.Text_IO;
with Stacks; use Stacks;
procedure Main is
   S : Stack (10);
   T : constant Stack := Make (4);
begin
   Ada.Text_IO.Put_Line (Integer'Image (S.Capacity) & Integer'Image (Size (S)) & Integer'Image (T.Capacity));
end Main;
