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: 103376,56525db28240414a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.201.129 with SMTP id ka1mr1220902pbc.4.1343500479004; Sat, 28 Jul 2012 11:34:39 -0700 (PDT) Path: c10ni45307pbw.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: Sat, 28 Jul 2012 11:32:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <578cef69-db74-4d0a-bdbe-4e34dabaf2e3@googlegroups.com> 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> <1qlao21lvhn4q.p95zkkqzzcqz$.dlg@40tude.net> <802f6aec-a448-4a41-8320-fbdb5ffa7883@googlegroups.com> <1lqose2aygd4r$.ots4i45o7jnz.dlg@40tude.net> <1tcosruz32van$.1wcucid7mxne2$.dlg@40tude.net> NNTP-Posting-Host: 69.20.190.126 Mime-Version: 1.0 X-Trace: posting.google.com 1343500478 10428 127.0.0.1 (28 Jul 2012 18:34:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 28 Jul 2012 18:34:38 +0000 (UTC) Cc: mailbox@dmitry-kazakov.de In-Reply-To: <1tcosruz32van$.1wcucid7mxne2$.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-28T11:32:55-07:00 List-Id: On Saturday, July 28, 2012 1:37:30 AM UTC-6, Dmitry A. Kazakov wrote: >=20 > BTW, when you talk about constraints, that let me suggest another problem > you have. You seem to use same numeric type for many things. In Ada it is > considered good practice to declare many disparate types rather than > subtypes of Integer. This is "weak" vs. "strong" typing POV. This is true, and I have no problem with having multiple types. *However*, = it should be noted that using subtyping may be precisely what is needed; pe= rhaps the datatype in the simulation goes through intermediate calculations= where the sign is negative but the result is always Positive or Natural. Vectors in math/physics is a good example -- there is something *very* wron= g if you try loading vectors with a negative magnitude -- where having the = magnitude in 2's complement might make it easier for some calculations.