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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f857f366542cd8aa,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Dispatch on the result still does not work? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH Date: Sat, 11 Jul 2009 12:04:43 +0200 Message-ID: NNTP-Posting-Date: 11 Jul 2009 12:04:37 CEST NNTP-Posting-Host: 8ad99983.newsspool2.arcor-online.net X-Trace: DXC=_UPA? Considering this one: package P is type T is tagged null record; function Value return T; type S is new T with null record; function Value return S; end P; package body P is function Value return T is begin return (null record); end Value; function Value return S is begin return (T with null record); end Value; end P; use P; X : T'Class := S'(Value); begin X := Value; -- Ambiguous? I would expect it rather dispatching on the tag of X, i.e. selecting Value, which returns S. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de