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 Lines: 15 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.