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,7c2c2261148a136c X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Setting Environment Variables Date: 2000/05/12 Message-ID: <8fhn6o$3ke$1@hobbes2.crc.com>#1/1 X-Deja-AN: 622686522 References: <8f6h8h$5ee$1@nnrp1.deja.com> <110520001501576096%emery@mitre.org> <391C43C9.5F7DA9E3@Raytheon.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@crc.com X-Trace: hobbes2.crc.com 958160920 3726 198.175.145.56 (12 May 2000 19:48:40 GMT) Organization: CRC: A wholly owned subsidiary of Thermo Electron NNTP-Posting-Date: 12 May 2000 19:48:40 GMT Newsgroups: comp.lang.ada Date: 2000-05-12T19:48:40+00:00 List-Id: Samuel T. Harris wrote in message news:391C43C9.5F7DA9E3@Raytheon.com... > David Emery wrote: > > > > This is specified in POSIX/Ada, since it's really an OS operation. > > > > dave > > So are command-line arguments but they are supported > directly in Ada 95. I find this "its an OS operation" > line of reasoning dubious. Ada.Command_Line specifies > what happens when an implementation has no command-line, > so why not have an Ada.Environment as well?!!! > Well, reading the existing environment could, of course, be easily done. But... setting an environment variable often requires enlarging the environment space -- meaning copying the old stuff plus the modification, and deallocating the old, etc. Some flavors of UNIX don't (or at least didn't 8 years ago) support setenv, and I remember that VADS was seriously broken on at least one platform, at that time with an Ada procedure for Setenv.