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-03 14:59:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Ada Configuration API for Unix and Windows Date: 03 Dec 2002 17:57:58 -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 1038956958 22542 128.183.235.92 (3 Dec 2002 23:09:18 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 3 Dec 2002 23:09:18 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:31397 Date: 2002-12-03T23:09:18+00:00 List-Id: "Martin Dowie" writes: > "Stephen Leake" wrote in message > news:uadjmvl9m.fsf@nasa.gov... > > 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'm guessing but it could be to ensure the user has a second look and > doesn't > get their 'keys' and 'values' the wrong way round (as both would be > strings)... Hmph. That's what named association is for: Put (reg, Key => "A_Key", Value => "A Value"); -- -- Stephe