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 08:45:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D04C9D0.7DFCED9D@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: config files proposal References: <3D03E1AD.80EB805D@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 10 Jun 2002 15:45:58 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1023723958 66.75.151.160 (Mon, 10 Jun 2002 08:45:58 PDT) NNTP-Posting-Date: Mon, 10 Jun 2002 08:45:58 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:25681 Date: 2002-06-10T15:45:58+00:00 List-Id: Stephen Leake wrote: > > 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. Sorry. I meant "written out when written". Sheesh. OK, no more late-night posting for me. My intention was to say that one should be associating comments with keys, not with arbitrary places in the INI file. Then, you wouldn't be restricting yourself to a specific file format that can support (say) multiple independent comments per key. > We might as well let the app write comments via the API as well. I think you need to be careful that you don't make the API too close to file semantics. I.e., you want "here's a data structure, store it", rather than "write this key/value, write this comment, write this other key/value, write another comment, oh and another comment", I would think. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://home.san.rr.com/dnew/DNResume.html ** ** http://images.fbrtech.com/dnew/ ** My brain needs a "back" button so I can remember where I left my coffee mug.