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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d23826ff0acb491b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Gem 39 - compiler specific? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <9e0bbbcd-260f-48ed-8043-d6280c633e85@h3g2000yqa.googlegroups.com> <19268dbw82hf4.aii8as09aapk.dlg@40tude.net> <4bff103b-1797-4e2b-9dcf-7466b667c59b@d9g2000prh.googlegroups.com> <1s8kuin5t96vr$.1taw9mluqlplz$.dlg@40tude.net> <1bf4b63a-1e2d-41f1-97c6-8324d4b829ff@z3g2000prd.googlegroups.com> <6o3frhrv0n0p$.8wj0gszs5h07$.dlg@40tude.net> Date: Fri, 4 Sep 2009 09:29:07 +0200 Message-ID: <1udpwiw4u1cj5$.ff4ssnbb90vn$.dlg@40tude.net> NNTP-Posting-Date: 04 Sep 2009 09:29:07 CEST NNTP-Posting-Host: f99b5076.newsspool4.arcor-online.net X-Trace: DXC=^?]kC8V1<1kOKO]LCQ@0g`4IUKkgb\9U^eR4_d4l X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8143 Date: 2009-09-04T09:29:07+02:00 List-Id: On Thu, 3 Sep 2009 17:06:48 -0500, Randy Brukardt wrote: > The intent leads to the rule that Unchecked_Conversion is only well-defined > when the sizes of the two types are the same. As noted, that doesn't need to > be the case for System.Address. > > You seem to want to muddle up the semantics to include some real > conversions. Do we need that semantics (reinterpret bit pattern as another type)? It is difficult to invent a case where an access value would be obtained from a bit patterns. It is never needed, IMO. > That would be a problem inside of generics (what if the actual > parameter is System.Address?? OK. (However there are already similar cases with generics) > Do you get the special semantics or not? > Either answer is uncomfortable and requiring the special semantics would > have bad consequences on code generation and legality rules), and in any > case is not very consistent. Yes. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de