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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site rayssd.UUCP Path: utzoo!linus!vaxine!wjh12!foxvax1!brunix!rayssd!sdl From: sdl@rayssd.UUCP (Litvintchouk) Newsgroups: net.lang.ada Subject: Re: IO in generic packages Message-ID: <112@rayssd.UUCP> Date: Sun, 28-Aug-83 15:01:15 EDT Article-I.D.: rayssd.112 Posted: Sun Aug 28 15:01:15 1983 Date-Received: Mon, 29-Aug-83 10:31:16 EDT References: <2113@umcp-cs.UUCP> Organization: Raytheon Co., Portsmouth RI List-Id: In ANSI '83 Ada, you can do input/output with generic package SEQUENTIAL_IO. It takes ELEMENT_TYPE, the type to be input/output, as a generic formal parameter. Just instantiate the package. I hope your Ada implementation of SEQUENTIAL_IO has FORM parameters which permit the i/o in human readable (ASCII) form (this is implementation dependent). You clearly can't use TEXT_IO because since the type is generic formal private the generic has no way of knowing whether it's text. Another possibility is to import the required input/output functions into the package as generic formal subprograms.