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-24 06:33:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Config_Files proposal Date: 24 Jun 2002 09:16:11 -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> <3D1289D2.9090107@telepath.com> <3D134669.5070000@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 1024925010 604 128.183.220.71 (24 Jun 2002 13:23:30 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 24 Jun 2002 13:23:30 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:26645 Date: 2002-06-24T13:23:30+00:00 List-Id: Darren New writes: R> Ted Dennison wrote: > > Darren New wrote: > > > >> 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. ;-) > > I'm probably missing something here. How is this worse than the > > current situation with Ada.Text_IO? > > If I have a text editor program and a compiler, I can save the source > from my editor window (using Text_IO to write it) and then compile it > with the compiler (using Text_IO to read it). This works like the user > expects. > > What the user doesn't expect is to run two copies of the text editor, > change the configuration in one, and have that configuration disappear > simply because they closed the other window later. That's what happens when you run two copies of the text editor, change the same source file in both, and save from both. One set of changes is lost. Why should config files be different? Hmm, one answer is "because the config file is hidden". That makes sense; we can expect the user to be aware of loading the same source file into to copies of the text editor, but not immediately aware of sharing one config file between the two copies of the text editor. But I still think the right answer in this case is one of: "use a better (multi-document) text editor". "use the registry for resources shared by multiple processes". "use separate config files for separate instances of applications" -- -- Stephe