comp.lang.ada
 help / color / mirror / Atom feed
From: geert@fozzie.sun3.iaf.nl (Geert Bosch)
Subject: Standard libraries (Was: Environment variables)
Date: 1996/11/14
Date: 1996-11-14T00:00:00+00:00	[thread overview]
Message-ID: <56do9g$1v5@fozzie.sun3.iaf.nl> (raw)
In-Reply-To: dewar.847807475@merv


Robert Dewar (dewar@merv.cs.nyu.edu) wrote:
  "Very few remote target (embedded) runtime systems have environment
   variables and many operating systems do not. If they were standard
   they would be in the standard libraries. "

You could say the same of package Ada.Command_Line. The important point
is, IMHO, that a reasonable number of different platforms (Dos, Unix,
Windows, OS/2, Mac) which represent a significant share (90%?) of the
potential Ada users have this same problem. That is a good enough
reason to have some form of standard interface.

I do not say that this functionality (including Ada.Command_Line)
should be part of the standardized Ada language. Issues like these are
very well suited to less formal standardizing, like including extra
functionality in the GNAT standard libraries. These might perhaps be
separated from the Ada.* hierarchy in an Extra.* hierarchy.

Given the significant use of GNAT in proportion to other Ada-95
compilers, an initiative (supported) by the developers of GNAT in this
direction might be followed by others and become a de facto standard.

Important areas to be covered by such an extension would be:

* Terminal IO including cursor positioning commands and attribute
changes. Of course these should be stored with each Terminal_IO file
opened, so multiple tasks can maintain there own position/attributes
without interfering with other tasks using the same terminal.

* File-system support for changing current directory, querying
information about files in the current directory and 
deleting/renaming files.

* Network IO which would at least support (a subset of) populair
TCP/IP networking, so there is a common way of communicating
between computers connected to the Internet.


These are points that have very much in common on the major platforms
like Dos, Unix, OS/2, Macintosh and Windows, although not all platforms
will have standard support for all areas. 

This is no reason however to *not* make *any* attempt to standardize
on these very common external interfaces. Many programs only need
the very simple common features described above which can have good
portability between platforms. 

Is it really necessary that every Ada user invents his own
ANSI-emulator? Should everybody make his own platform-specific
procedure for deleting an external file? 
Is that what code reuse is all about?

I suggest that we, as Ada users and c.l.a. readers/writers, make
an effort to standardize on specifications for these interfaces.
Implementing them is easy enough.

Regards,
   Geert
-- 
E-Mail: geert@sun3.iaf.nl    




  parent reply	other threads:[~1996-11-14  0:00 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-30  0:00 Environment variables Christopher J Arnold
1996-10-30  0:00 ` David Emery
1996-10-30  0:00   ` Laurent Guerby
1996-11-02  0:00     ` Keith Thompson
1996-10-30  0:00   ` Robert Dewar
1996-11-01  0:00   ` Laurent Guerby
1996-11-02  0:00     ` Robert A Duff
1996-11-02  0:00     ` Robert Dewar
1996-11-01  0:00   ` Norman H. Cohen
1996-11-01  0:00   ` Stephen Leake
1996-11-02  0:00     ` Robert Dewar
1996-11-03  0:00       ` Robert A Duff
1996-11-03  0:00         ` Robert Dewar
1996-11-04  0:00           ` Stephen Leake
1996-11-04  0:00             ` Robert Dewar
1996-11-04  0:00             ` Larry Kilgallen
1996-11-04  0:00         ` Tucker Taft
1996-11-01  0:00   ` David Shochat
1996-11-02  0:00     ` Larry Kilgallen
1996-11-04  0:00       ` Michael F Brenner
1996-11-04  0:00         ` Larry Kilgallen
1996-11-12  0:00         ` Robert Dewar
1996-11-13  0:00           ` Norman H. Cohen
1996-11-14  0:00           ` Geert Bosch [this message]
1996-11-14  0:00             ` Standard libraries (Was: Environment variables) Robert Dewar
1996-11-16  0:00               ` Geert Bosch
1996-11-16  0:00                 ` Robert Dewar
1996-11-17  0:00                   ` Geert Bosch
1996-11-18  0:00                     ` Larry Kilgallen
1996-11-05  0:00   ` Environment variables David Emery
1996-10-30  0:00 ` David Taylor
1996-10-31  0:00 ` Robert I. Eachus
1996-10-31  0:00   ` Doug Smith
1996-11-03  0:00   ` Matthew Heaney
1996-10-31  0:00 ` James Rogers
1996-10-31  0:00 ` Norman H. Cohen
1996-11-06  0:00   ` David Wheeler
1996-11-08  0:00     ` Christopher J Arnold
1996-11-09  0:00     ` Robert Dewar
replies disabled

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