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,39579ad87542da0e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.66.67.37 with SMTP id k5mr7193024pat.22.1367834442627; Mon, 06 May 2013 03:00:42 -0700 (PDT) Path: bp1ni1677pbd.1!nntp.google.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Mon, 06 May 2013 12:00:25 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: 01/BPNoqk8s7XmPzrYdoUA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-05-06T12:00:25+02:00 List-Id: Le Tue, 30 Apr 2013 02:31:37 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > Le Sun, 28 Apr 2013 07:14:15 +0200, Yannick Duch=C3=AAne (Hibou57) = > a =C3=A9crit: >> As an additional aside but related question, I'm also interested in t= he = >> question in the particular context of storage=E2=80=91pools, which us= e tagged = >> types instead of simple sub=E2=80=91program designated by some attrib= utes or = >> operator overloading (I imagine simple sub=E2=80=91programs could hav= e been an = >> option for the `new` operator, just like for the other operators). > > Same question in the context of `Ada.Finalization`. Similar semantic = > could have been made available without requiring tagged types. > I also looked at the RM about user=E2=80=91defined indexing, and could n= ot find a = reason why it is legal for tagged types only. May be I will understand a= = future day why it requires a tagged type, so far, it makes me feel it's = = lacking orthogonality. Or else, may be it suggest types should rather be tagged by default but = = the primitives ones or derived from the primitive ones. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity