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: 103376,6689542a60dbcc55 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Discriminated records are not the most efficient, but ... Date: Mon, 23 Aug 2010 10:26:28 +0200 Organization: Ada @ Home Message-ID: References: <874oemcr37.fsf@mid.deneb.enyo.de> <87d3t9riip.fsf@mid.deneb.enyo.de> <1tp38689ok1hy.1nktp69e1nhkm.dlg@40tude.net> NNTP-Posting-Host: qaSBlvV+1zCl6PWY+jYb4w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.61 (Win32) Xref: g2news1.google.com comp.lang.ada:13660 Date: 2010-08-23T10:26:28+02:00 List-Id: Le Mon, 23 Aug 2010 10:06:46 +0200, Dmitry A. Kazakov = a =C3=A9crit: > Nominal type equivalence is when two types considered same when their = = > names > are same. It cannot imply structural typing. Should have said =E2=80=9CFull Name=E2=80=9D instead of Name. In Ada, same full name (after any renaming resolution done) implies the = = same structure, or implies it holds at least the same structure (if you = = consider the views of a type of a class), which is enough to hold logica= l = properties inferred from the structure. You may have Package1.Type1 and package2.Type1 with different structure,= = but they do not have the same name... oops, same full name. -- = * 3 lines of concise statements is readable, 10 pages of concise = statements is unreadable ; * 3 lines of verbose statements may looks unuseful, 10 pages of verbose = = statements will never looks too much pedantic