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 autolearn=ham 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!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" Newsgroups: comp.lang.ada Subject: Re: Discriminants of tagged types Date: Fri, 29 Oct 2010 20:59:17 +0200 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: individual.net emyUp0p9MvgsrDddG8KtlQCEgHc99+IelgT8XSiA3l/5UkROJ6 Cancel-Lock: sha1:Y2ebyrWC0H4i9M4fa8LtGAzTk7o= User-Agent: Opera Mail/10.62 (Win32) Xref: g2news2.google.com comp.lang.ada:15910 Date: 2010-10-29T20:59:17+02:00 List-Id: On Thu, 28 Oct 2010 10:50:51 +0200, Maciej Sobczak wrote: > On 28 Pa=C5=BA, 09:53, "Dmitry A. Kazakov" = > wrote: > >> > Because tagged types usually represent entities that are bound to s= ome >> > resources >> >> This has nothing to do with copying. Consider a handle of a resource,= e.g. >> HWND as an example. It is bound to the resource, nevertheless it is >> copyable. > > Just like a file descriptor. Yet, there is no reason for these things > to be polymorphic. But they already are. Sometimes they are files, sometimes devices, sometimes sockets, ... Vinzent. -- = There is no signature.