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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.213.106 with SMTP id nr10mr4785477pbc.2.1335413956699; Wed, 25 Apr 2012 21:19:16 -0700 (PDT) Path: r9ni99322pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: ytomino Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Wed, 25 Apr 2012 21:12:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9174782.48.1335413559883.JavaMail.geo-discussion-forums@pbkc8> References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <9af5eaaa-1c48-4455-a8e8-39dd9ee8092d@ot8g2000pbb.googlegroups.com> NNTP-Posting-Host: 114.150.55.69 Mime-Version: 1.0 X-Trace: posting.google.com 1335413956 29785 127.0.0.1 (26 Apr 2012 04:19:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Apr 2012 04:19:16 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=114.150.55.69; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-04-25T21:12:39-07:00 List-Id: On Thursday, April 26, 2012 9:37:30 AM UTC+9, Hibou57 (Yannick Duch=EAne) w= rote: >=20 > The above may still present issues with overloading. Imagine X exist with= =20 > multiple signatures, for both I1 and I2: as your proposal does not refer = =20 > the precise signature, this would still be ambiguous. Really? I think, compiler can select one of overloaded functions by other parameter= s. procedure X (Obj : I1); procedure X (Obj : I1; Y : Integer); procedure X (Obj : I2; Y : Integer); -- *1 procedure X (Obj : I2; Y : String); overriding (I2.X) procedure X3 (Obj : T; Y : Integer); Unquestionably, X3 is overriding *1. > I did not checked, but I feel there already is a way to avoid this =20 > ambiguity, using a renaming for the different Xs, prior to the definition= =20 > of T. >=20 Probably, I feel that renaming introduces new primitive, and old name may s= tay.