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-03 08:13:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!news-lei1.dfn.de!news-fra1.dfn.de!newsfeed.hanau.net!newsfeed.vmunix.org!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: config files proposal Date: Mon, 3 Jun 2002 15:13:05 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3CFA8E42.B7844253@san.rr.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1023117185 7492 129.241.83.78 (3 Jun 2002 15:13:05 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 3 Jun 2002 15:13:05 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:25258 Date: 2002-06-03T15:13:05+00:00 List-Id: On Sun, 02 Jun 2002 22:16:00 GMT, Stephen Leake wrote: > Darren New writes: > >> Stephen Leake wrote: >> Question: Would it make sense to allow compound values to be written >> by converting a stream of them to base64 or something? > > I think composite values are best handled by multiple levels. Ie, if > you have a record: > > type Foo is record > a : integer; > b : integer; > end record; > > you write this as (assuming Java property style) > > foo.a = 1 > foo.b = 2 > > base64 would be good for values that don't need to be user editable. I > guess persistent storage for a large object (whether it is composite > or not) could be supported that way. I'm not clear why that would be > in a typical "config file". Hmm, maybe a pixel bitmap for an icon? xpm is ASCII based. If you start including base64 in the config files there will be a lot of data corruption. If one need to use sth like that then the config file should be binary so a user cannot edit it. The user of the package can easily make more than one config file. Example: User editable settings goes in settings.config Program settings (like coulours, variables) goes in program.data Then program.data can be binary or whatever, while settings.config is ASCII. I don't think the package should know which OS it is running on. I mean the developer should give it the propper Path to look in I think. Preben