comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: Ada Configuration API for Unix and Windows
Date: 03 Dec 2002 17:57:58 -0500
Date: 2002-12-03T23:09:18+00:00	[thread overview]
Message-ID: <usmxeu2vd.fsf@nasa.gov> (raw)
In-Reply-To: asjb7p$41a$1@knossos.btinternet.com

"Martin Dowie" <martin.dowie@no.spam.btopenworld.com> writes:

> "Stephen Leake" <Stephen.A.Leake@nasa.gov> 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



  reply	other threads:[~2002-12-03 22:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-03 16:47 Ada Configuration API for Unix and Windows Ulrich Eckhardt
2002-12-03 21:35 ` Stephen Leake
2002-12-03 22:29   ` Martin Dowie
2002-12-03 22:57     ` Stephen Leake [this message]
2002-12-04 13:09       ` Martin Dowie
2002-12-04  9:27   ` Ulrich Eckhardt
2002-12-04 13:49     ` Stephen Leake
2002-12-04 14:20       ` Ulrich Eckhardt
2002-12-05  8:43   ` Victor Porton
  -- strict thread matches above, loose matches on Subject: below --
2002-12-05  6:10 Grein, Christoph
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox