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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,56525db28240414a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.84.41 with SMTP id v9mr1777155pay.43.1343324993085; Thu, 26 Jul 2012 10:49:53 -0700 (PDT) Path: c10ni38755pbw.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: Efficient Sequential Access to Arrays Date: Thu, 26 Jul 2012 10:40:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <01983f1c-f842-4b1f-a180-bcef531dad4c@googlegroups.com> <87ipdf4vh6.fsf@mid.deneb.enyo.de> <4ce44d2d-d789-42a0-a6ed-035f7f8d58be@googlegroups.com> <1d20andzhb0rk.ytxhpkza8tky$.dlg@40tude.net> NNTP-Posting-Host: 69.20.190.126 Mime-Version: 1.0 X-Trace: posting.google.com 1343324899 27247 127.0.0.1 (26 Jul 2012 17:48:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Jul 2012 17:48:19 +0000 (UTC) Cc: mailbox@dmitry-kazakov.de In-Reply-To: <1d20andzhb0rk.ytxhpkza8tky$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-26T10:40:32-07:00 List-Id: On Thursday, July 26, 2012 7:46:04 AM UTC-6, Dmitry A. Kazakov wrote: > > Some would disagree, but IMO in a well-written Ada program you should nev= er > ever need 'Valid. Don't do Unchecked_Conversion with doubtful outcome. > Don't use stream attributes for constrained types. It might not be avoidable though; the presence of 'Valid however does let y= ou ensure that your [sub]typing assumptions are met. This might be especial= ly true if you're importing data from some third-party where the input-form= at doesn't specifically conform to your expected-inputs. (This happens with= disturbing frequency in handling electronic medical records; usually becau= se whoever started the record was using a spreadsheet.) > Don't use for X'Address > use Z'Address for the purpose of conversion etc. What do you mean here? Overlaying?