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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c04619be7b30e1c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-04 07:01:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!freenix!enst!enst.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: How to desambiguate? Date: Wed, 4 Jul 2001 16:00:34 +0200 Organization: Ecole Nationale Superieure des Telecommunications Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 994255279 88393 137.194.161.2 (4 Jul 2001 14:01:19 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 4 Jul 2001 14:01:19 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from maa@liacc.up.pt on Wed, Jul 04, 2001 at 02:55:36PM +0000 Precedence: special-delivery X-WWW: http://www.rfc1149.net/sam X-Mail-Processing: Sam's procmail tools X-ICQ: 21547599 X-Sam-Laptop: yes Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 X-Reply-To: Samuel Tardieu List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:9424 Date: 2001-07-04T16:00:34+02:00 On 4/07, M. A. Alves wrote: | Consider the subprograms | | procedure A(X: in T1); | procedure A(X: in T2); | function B return T1; | function B return T2; | | The call | | A(B); | | is of course ambiguous (and will therefore not compile). | | How does one desambiguate? (Assume I want to call the B returning T1.) A (T1'(B))