Answers ( 1 )

  1. 2016-11-15 05:11

    The generic parameters should include a generic procedure parameter for printing the generic data type passed to the package. This will allow the data type to be anything and the writer of the generic package need not be concerned with how it is output.

    generic
       type element_type is private;
       with procedure Print(Item : element_type);
    package gen_pack is
       ...
    end gen_pack;
    
◀ Go back