comp.lang.ada
 help / color / mirror / Atom feed
From: sdl@rayssd.UUCP (Litvintchouk)
Subject: Re: IO in generic packages
Date: Sun, 28-Aug-83 15:01:15 EDT	[thread overview]
Date: Sun Aug 28 15:01:15 1983
Message-ID: <112@rayssd.UUCP> (raw)
In-Reply-To: 2113@umcp-cs.UUCP

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.

  reply	other threads:[~1983-08-28 19:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1983-08-24  1:53 IO in generic packages brad
1983-08-28 19:01 ` Litvintchouk [this message]
1983-08-28 19:22   ` Litvintchouk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox