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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,80b3e504140e89fd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-20 13:53:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Config_Files proposal Date: 20 Jun 2002 16:45:59 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D0FAC67.A4861809@san.rr.com> <3D10B6B1.AFE9D4E8@san.rr.com> <3D10E046.E604231D@san.rr.com> <3D1204B5.4620F160@san.rr.com> <3D1215A8.719D39C5@nbi.dk> <3D123852.1040508@san.rr.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1024606418 7356 128.183.220.71 (20 Jun 2002 20:53:38 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 20 Jun 2002 20:53:38 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:26522 Date: 2002-06-20T20:53:38+00:00 List-Id: Darren New writes: > Stephen Leake wrote: > > 1) Simply forbid simultaneous and/or concurrent access to a single > > config file (as the requirements currently state). > > I think "forbid simultaneous access" is fine. But that's not what > you're doing. You're doing "screw the user if there's simultaneous > access." Kind of the way C "forbids" indexing off the end of an array. > ;-) Well, that's true; I'm only "forbidding" in the requirements and the user guide, not in the code. But what else can I do, without assuming more about what the operating system can do? I'd like to use either Ada.Text_IO, or some Gnat package to do all the file management stuff. I don't think there is any support for locking in there, but I'll admit I haven't really looked. It would be nice if we only use Ada.Text_IO, because then it will be more portable to other compilers. -- -- Stephe