comp.lang.ada
 help / color / mirror / Atom feed
From: "Michael B." <michaelb@example.com>
Subject: Question about name resolution
Date: Tue, 20 Jan 2015 19:47:40 +0100
Date: 2015-01-20T19:47:40+01:00	[thread overview]
Message-ID: <m9m7s8$3g8$1@speranza.aioe.org> (raw)

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?


Regards,

Michael

             reply	other threads:[~2015-01-20 18:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20 18:47 Michael B. [this message]
2015-01-20 19:00 ` Question about name resolution Jeffrey Carter
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