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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!gandalf.srv.welterde.de!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Wed, 1 May 2013 20:09:46 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1367456988 24934 69.95.181.76 (2 May 2013 01:09:48 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 2 May 2013 01:09:48 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Original-Bytes: 1941 Xref: number.nntp.dca.giganews.com comp.lang.ada:181343 Date: 2013-05-01T20:09:46-05:00 List-Id: "Yannick Duchêne (Hibou57)" wrote in message news:op.wv8jh1c1ule2fv@cardamome... ... >As an additional aside but related question, I'm also interested in the >question in the particular context of storage-pools, which use tagged >types instead of simple sub-program designated by some attributes or >operator overloading (I imagine simple sub-programs could have been an >option for the `new` operator, just like for the other operators). Nitpick: "new" is not an operator, it is an *operation*, things whose behavior cannot be modified directly. Like membership, it would be hard to make "new" an operator because one of the arguments can be a type (rather than an object or value), and it's hard to see how that could be mapped to an Ada function. (Adding type parameters seems over the top.) Randy.