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: 10261c,cfbb90c56a313e70 X-Google-Attributes: gid10261c,public X-Google-Thread: 103376,cfbb90c56a313e70 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: From extended Pascals to Ada 95 guide Date: 2000/08/28 Message-ID: <39AA4185.D493B890@maths.unine.ch>#1/1 X-Deja-AN: 663420965 Content-Transfer-Encoding: 7bit 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> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 28 Aug 2000 12:40:06 +0100, mac13-32.unine.ch Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.lang.pascal.misc Date: 2000-08-28T00:00:00+00:00 List-Id: 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; Or without maximum size, you could use OO techniques with controlled types, maybe - but a bit expensive for efficient matrix calculations... > When I had to design a new language, I would add it I think, because it > seems nice. But to change to another language (... ADA..) for it? Just for it ? It depends - on needs and personal tastes... My opinion is that the global advantage of the change is worth. Also for most details - e.g. for this matrix affair: in "classic" Pascal there is no solution! Anyway the jump to Ada is not a frightening change - rather an upgrade... ______________________________________________________ Gautier -- http://members.xoom.com/gdemont/gsoft.htm