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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Question about name resolution Date: Tue, 20 Jan 2015 12:00:33 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 20 Jan 2015 19:00:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="7519078e121dffe718f7ef9b6511f660"; logging-data="1703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Vs1F7GkYV5z7/fod0MME0yXMyS+kSZaY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: Cancel-Lock: sha1:joWVhf991VWlGIp10ZN4la8tpeQ= Xref: news.eternal-september.org comp.lang.ada:24635 Date: 2015-01-20T12:00:33-07:00 List-Id: 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