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,3a7c118fd2cc64f9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!h12g2000pro.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: A hole in Ada type safety Date: Thu, 12 May 2011 17:58:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87oc3odtci.fsf@mid.deneb.enyo.de> <715a5498-095c-4e61-8a09-8510c19b2553@s16g2000prf.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1305248297 3736 127.0.0.1 (13 May 2011 00:58:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 May 2011 00:58:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h12g2000pro.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19245 Date: 2011-05-12T17:58:17-07:00 List-Id: On May 12, 5:47=A0pm, a...@att.net wrote: > -- > -- =A0May be this program will help explain the problem. > -- > -- =A0Plus, > -- =A0RM 13.9 (12) -- say the function can copy "by reference, if the > -- =A0Source type is not a by-copy type." In Ada 2005, the definition > -- =A0of Source type for the Unchecked_Conversion is still a "limited > -- =A0private" which is a "Limited Type, and all Limited types (RM 7.5) > -- =A0are now a by-copy type. Bzzzt!! Please read 6.2. If you're going to try be be a language lawyer, you might want to consult the RM to find out what the terms you use actually mean, rather than guessing. -- Adam