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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cfbb90c56a313e70 X-Google-Attributes: gid103376,public X-Google-Thread: 10261c,cfbb90c56a313e70 X-Google-Attributes: gid10261c,public From: Charles Hixson Subject: Re: From extended Pascals to Ada 95 guide Date: 2000/08/28 Message-ID: <39AA9A82.6265AF18@earthlink.net>#1/1 X-Deja-AN: 663540835 References: <8o3s2a$9ph$1@nnrp1.deja.com> <8o4bfq$v0h$1@slb7.atl.mindspring.net> <39A655BE.18E89020@maths.unine.ch> <39A668AB.26F88375@maths.unine.ch> <39A6ABD9.634308AA@earthlink.net> <39AA2B85.F9A917E8@maths.unine.ch> <39AA4185.D493B890@maths.unine.ch> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------9304D60B97B646724C857995" X-Complaints-To: abuse@earthlink.net X-Trace: newsread03.prod.itd.earthlink.net 967481980 198.94.156.19 (Mon, 28 Aug 2000 09:59:40 PDT) Organization: EarthLink Inc. -- http://www.EarthLink.net MIME-Version: 1.0 NNTP-Posting-Date: Mon, 28 Aug 2000 09:59:40 PDT Newsgroups: comp.lang.ada,comp.lang.pascal.misc Date: 2000-08-28T00:00:00+00:00 List-Id: This is a multi-part message in MIME format. --------------9304D60B97B646724C857995 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Gautier wrote: > Marco: > > > Pretty much yes. But because the size of "matrix" is fixed, and not > > dynamical, it is too limited IMHO. > > No no... size of "matrix" is NOT fixed; only subtypes of it or objects of this > type are - that's the whole difference :-) ! If you want resizable things, it > is also doable in Ada. E.g. > > type matrix( max_m,max_n: positive ) is record > a: array( 1..max_m, 1..max_n ) of my_float; > m: positive:= max_m; > n: positive:= max_n; > end record; The dimensionality of matrix is, however, fixed. I'm not certain that this matters, since I usually know the dimensions of the type before I start, but perhaps that is because I've always worked with languages that specify things that way. OTOH, what operations could one define without knowing the dimensionality ahead of time? Well, there's projection, magnitude, scalar addition, scalar subtraction, application (apply this operation to every element of the matrix), application2 (apply every element of this matrix to this thing), store, recall ... -- (c) Charles Hixson -- Addition of advertisements or hyperlinks to products specifically prohibited --------------9304D60B97B646724C857995 Content-Type: text/x-vcard; charset=us-ascii; name="charleshixsn.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Charles Hixson Content-Disposition: attachment; filename="charleshixsn.vcf" begin:vcard n:Hixson;Charles x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:charleshixson@earthling.net fn:Charles Hixson end:vcard --------------9304D60B97B646724C857995--