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,7624df5e57d09688 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-10 05:41:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!news-xfer.siscom.net!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin8.nnrp.aus1.giganews.com.POSTED!not-for-mail Sender: Stephe@TAKVER Newsgroups: comp.lang.ada Subject: Re: config files proposal References: <3D03E1AD.80EB805D@san.rr.com> From: Stephen Leake Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-GC-Trace: gv1-6rI8st7IlFgaQUQEh2fZqX954/H8TYE+BwpgdU= NNTP-Posting-Date: Mon, 10 Jun 2002 07:40:45 CDT Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-ZJ9C5G1WuXcGdiVEPsp2D7LYChmOHyzhRwctRVAcV4IiWxkE02NE/xr3AAi5BKMfyLi8+rVdgpKzanq!oeQxU27TwQ3bmctc1Uv4w8uv3ufDHZsrucygPVh335wBt52jBtsAlGo= X-Complaints-To: abuse@comcast.com X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Mon, 10 Jun 2002 12:40:45 GMT Xref: archiver1.google.com comp.lang.ada:25664 Date: 2002-06-10T12:40:45+00:00 List-Id: Darren New writes: > Stephen Leake wrote: > > > Configuration tasks are simpler if the config file is commented and > > > handling comments is difficult if you use an API call to write to > > > the file. > > > > Good point; I hadn't thought of that. > > > > I think this makes XML a better idea; we can allow for a "comment" tag > > that is saved in the memory image, and written back out. > > Or simply allow an association of a comment string with each config value. > It gets filled in when read, or left out when written. The point would be to save the comments in memory, and write them out again. That way, the comments can guide someone hand-editing the file. We might as well let the app write comments via the API as well. > It doesn't take XML to do this. True; Ada can do anything :). -- -- Stephe