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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-29 11:05:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!news.voicenet.com!nntp.upenn.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: A standard package for config files is needed Date: Wed, 29 May 2002 13:56:43 -0400 Organization: Michigan State University Message-ID: References: Reply-To: "Chad R. Meiners" NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:24948 Date: 2002-05-29T13:56:43-04:00 List-Id: "Preben Randhol" wrote in message > So I hope now to kick off a discussion around this. > We have been discussing a bit about Window registry versus .ini files, > and have more or less agreed that the latter is the better. The reason > is that .ini files are: > > * Platform independant (can use the exact same routines on Unix) > * Easier to backup > * Easier to have more than one version of So why are you even talking about the backend of storing program configurations? It would seem reasonable that you would want to define a set of API's for storing program configuration. This package would then take advantage of the services offered (or not offered) by the operating system. This would allow for the compiler vendor to best determine how configurations should be stored. Sure, you might want to write an initial package that provides the configuration services via .ini files for usability test, but I would really like it if the configuration API is customized to each system type. This means that when you compile your program for NT the program uses the registry and when you compile your program for UNIX it uses configuration files. This ways the end user doesn't have to learn yet another configuration paradigm to reconfigure an Ada program; they can use the operating system's paradigm. -CRM