From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Question about name resolution
Date: Tue, 20 Jan 2015 12:00:33 -0700
Date: 2015-01-20T12:00:33-07:00 [thread overview]
Message-ID: <m9m8jj$1l7$1@dont-email.me> (raw)
In-Reply-To: <m9m7s8$3g8$1@speranza.aioe.org>
On 01/20/2015 11:47 AM, Michael B. wrote:
> The following example does not compile because the call to "P" is ambiguous:
>
> procedure Main is
>
> procedure P is
> begin
> null;
> end P;
>
> procedure P (I : Integer := 0) is
> begin
> null;
> end P;
>
> begin
> P;
> end Main;
>
> What syntax is needed to call the first "P" without parameters?
There's no way to call the 1st P by the name P. You could rename it and call it
by the renamed name.
--
Jeff Carter
"Ada has made you lazy and careless. You can write programs in C that
are just as safe by the simple application of super-human diligence."
E. Robert Tisdale
72
next prev parent reply other threads:[~2015-01-20 19:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 18:47 Question about name resolution Michael B.
2015-01-20 19:00 ` Jeffrey Carter [this message]
2015-01-20 19:32 ` Michael B.
2015-01-20 20:39 ` Robert A Duff
2015-01-21 18:25 ` Michael B.
2015-01-21 0:47 ` Jeffrey Carter
2015-01-21 10:54 ` Brian Drummond
2015-01-20 19:43 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox