comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Knoth <adi@thur.de>
Subject: Re: basic ada question
Date: Fri, 19 Aug 2005 17:55:28 +0000 (UTC)
Date: 2005-08-19T17:55:28+00:00	[thread overview]
Message-ID: <slrndgc78g.igi.adi@ppc201.mipool.uni-jena.de> (raw)
In-Reply-To: NTnNe.64$_f.57@trnddc03

Randy <abuse@127.0.0.1> wrote:

> Ada.float_Text_IO.Get ( Item => P);
>
> I was wondering about the "Item=>."
> This is not (not yet anyway) explained and I was wondering if someone 
> could tell me more about why/how to use it?

It is a named parameter. You can use it to rearrange the order
of your parameters when calling a function/procedure.

Imagine something like this:

   procedure foo (param1: in t1; param2: in t2; param3: in t3)

So you can call foo with

   foo (a, b, c) where a has type t1, b has type t2 and c has type t3.

You might want to use a different order, so use named parameters:

   foo (param2 => b, param1 => a, param3 => c);

There is more to tell about named parameters, just go on reading
your book.

> It seems to be optional and not required.

You're not forced to use named parameters. It's just a feature
to ease your life ;)

> Thanks

BTW: your postings sucks pretty much: no valid From, non-unique
     message-ID (no fqdn). Perhaps you can correct this.

-- 
mail: adi@thur.de  	http://adi.thur.de	PGP: v2-key via keyserver

Die W�rde des Menschen ist unauffindbar.



  reply	other threads:[~2005-08-19 17:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-19 16:35 basic ada question Randy
2005-08-19 17:55 ` Adrian Knoth [this message]
2005-08-19 20:22   ` Simon Wright
2005-08-19 21:13     ` Adrian Knoth
2005-08-22 13:28     ` Marc A. Criley
2005-08-19 21:43   ` Randy
2005-08-19 22:03     ` Adrian Knoth
2005-08-20  3:30   ` Jeffrey R. Carter
2005-08-20 14:28     ` Robert A Duff
2005-08-21 17:37     ` Steve
2005-08-21 21:45       ` Randy
2005-08-22 13:41         ` Steve
2005-08-23  1:47           ` Steve
2005-08-23 17:24             ` Martin Krischik
2005-08-23 21:32               ` Adrian Knoth
2005-08-24 16:41                 ` Martin Krischik
2005-08-20  6:36   ` [OT] Randy
2005-08-20 12:58     ` [OT] Larry Kilgallen
2005-08-20 19:48       ` [OT] Randy
2005-08-20 20:25         ` [OT] Adrian Knoth
2005-08-20 21:55           ` [OT] Way out in Left field Randy
2005-08-20 22:44           ` [OT] Randy
2005-08-20 21:27     ` [OT] TEST Randy
2005-08-20 22:52       ` Frank J. Lhota
2005-08-20 23:00         ` Randy
2005-08-20 22:31 ` [ot] test Randy
2005-08-20 22:39 ` Randy
replies disabled

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