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,46295b30ce38047c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-04 05:49:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Ada Configuration API for Unix and Windows Date: 04 Dec 2002 08:49:29 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1039010450 28394 128.183.235.92 (4 Dec 2002 14:00:50 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 4 Dec 2002 14:00:50 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:31414 Date: 2002-12-04T14:00:50+00:00 List-Id: Ulrich Eckhardt writes: > Stephen Leake wrote: > > In an example, you have: > > Put(reg,To_Key("A_Key"),"A Value"); -- A Key in the default section > > Why is the conversion To_Key necessary? Surely it could be done by > > Put? > > I have decided to introduce special types for sections and values, > so that the user can not accidentialy permute sections and keys or > other unbounded strings, specialy when variables are used (and not > simple string literals like in the example). That seems to make sense at first, but just gets in the way in the long run. A string is a string. Named association is a better solution. -- -- Stephe