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,4ce5890331a5b529 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!postnews.google.com!d8g2000yqf.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: Discriminants of tagged types Date: Sun, 31 Oct 2010 11:36:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4b0e9629-5a2b-446f-a1bc-d3432db74f13@d8g2000yqf.googlegroups.com> References: <14314714-e92c-4036-9cbb-da8e72489261@h7g2000yqn.googlegroups.com> <3243de1d-c6b4-4845-ab5f-28ea4e9f5738@c20g2000yqj.googlegroups.com> <14f33f04-40f5-4a72-a18b-d511dd2eb3b3@w21g2000vby.googlegroups.com> <3c44f6d7-7ff0-4362-8902-fbcfe0eee788@a37g2000yqi.googlegroups.com> NNTP-Posting-Host: 174.28.254.71 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1288550197 24706 127.0.0.1 (31 Oct 2010 18:36:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 31 Oct 2010 18:36:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d8g2000yqf.googlegroups.com; posting-host=174.28.254.71; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:16030 Date: 2010-10-31T11:36:37-07:00 List-Id: On Oct 31, 10:20=C2=A0am, Maciej Sobczak wrote: > On 30 Pa=C5=BA, 22:21, "Vinzent Hoefler" > wrote: > > > IMO polymorphism and copy semantics are distinct > > concepts. > > As already said, I've yet to see a convincing example of a type that > is both justifiably polymorphic and copyable at the same time. > > -- > Maciej Sobczak *http://www.inspirel.com I got one for you; I was using tagged types to implement the typing- system for a PostScript interpreter. Virtually all PostScript objects (that is, the things you push onto its stacks) are copyable... and all the objects have attributes for being 'executable' (though the execution thereof may be defined as [returning] the value thereof).