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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-07 11:38:14 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 07 Nov 2003 13:38:12 -0600 Date: Fri, 07 Nov 2003 14:38:11 -0500 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" References: <3FA50083.10709@noplace.com> <3FA777E9.4030605@noplace.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.34.214.193 X-Trace: sv3-OOe3nhBLSe9GMEo3IhQDp0YuX9jqGr6p/PkBceotMj+vtFDszDEdq4ra9PrCs2G4HK1SgO49/PPLCm7!U+lRkjMzYP1gb24svQc9b51nTMe0ls9H/L9DnPxwFx+VekW1eZy1NNumMZFS8Q== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:2227 Date: 2003-11-07T14:38:11-05:00 List-Id: Martin Dowie wrote: > I was also wondering how it would cope with non-limited types in > situations like: > > A := A * B; > -- A and B are for the sake of arguement 'matrices', see the AI on > -- matrices & vectors ;-) > > In this case could you safely manipulate A 'in-situ'?.. You see why ammending the reference manual is no easy task. Of course we don't want to allow or require a compiler to mess up in that case, but want to permit it to do: A := B * C; right. (That doesn't mean I can easily define what "right" means if A, B, and C are bit vectors.) Oh, and just to rain a bit more on the parade, if A in your example is a 3x4 matrix and B is 4x3, then is it legal to raise Constraint_Error before doing the arithmetic? A more interesting question is that obviously if A in A := B * C; is indefinite, you want it to get the "right" constraint from the "*" function. But what if the return value is declared indefinite? Can it take its constraints from the target object? -- Robert I. Eachus 100% Ada, no bugs--the only way to create software.