From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b6751ae58ef95a4f X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Generics and I/O Date: 1998/10/06 Message-ID: #1/1 X-Deja-AN: 398434901 References: Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.ada Date: 1998-10-06T00:00:00+00:00 List-Id: Add the following: generic type Item is private; -- with procedure Put(I: in Item) is <>; -- package Foo is... Now if there is a visible Put procedure which matches the profile, you are all set. Otherwise you will have to pass it during the instantiation explicity: with Ada.Integer_Text_IO; package Int_Foo is new Foo(Integer,Ada.Integer_Text_IO.Put); -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...