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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f857f366542cd8aa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!d34g2000vbm.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Dispatch on the result still does not work? Date: Sun, 12 Jul 2009 13:30:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <874fde27-bd71-4d8b-adad-072817790373@d34g2000vbm.googlegroups.com> References: <4a58dfcf$0$30232$9b4e6d93@newsspool1.arcor-online.net> <1rfyxeircfmy1.19a1j3vqyttbo$.dlg@40tude.net> <74j6m.69502$rO.69160@newsfe13.ams2> <1u2c96ysoamp2.1vn3copqwfld7$.dlg@40tude.net> NNTP-Posting-Host: 82.20.239.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1247430607 20771 127.0.0.1 (12 Jul 2009 20:30:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 12 Jul 2009 20:30:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d34g2000vbm.googlegroups.com; posting-host=82.20.239.89; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7021 Date: 2009-07-12T13:30:07-07:00 List-Id: On Jul 12, 6:11=A0pm, AdaMagica wrote: > =A0 X : T'Class :=3D S'(Value); > begin > =A0 =A0X :=3D Value; -- Ambiguous? > > You know, I'm not a language lawyer, but after the initialization, X > is constrained to the tag with which it was initialized. > > So to me, it should be dispatching as Dmitry expects. I think GNAT GPL 2009 might just have a problem in this area: this is accepted procedure Q is X : P.T'Class :=3D P.S'(P.Value); begin X :=3D P.T'(P.Value); but this fails procedure Q is X : P.T'Class :=3D P.T'(P.Value); begin X :=3D P.S'(P.Value); saying 'tag-indeterminate expression must have type "T"(RM 5.2 (6))'