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: Gautier Subject: Re: From extended Pascals to Ada 95 guide Date: 2000/08/25 Message-ID: <39A655BE.18E89020@maths.unine.ch>#1/1 X-Deja-AN: 662320719 Content-Transfer-Encoding: 7bit References: <8o3s2a$9ph$1@nnrp1.deja.com> <8o4bfq$v0h$1@slb7.atl.mindspring.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 25 Aug 2000 13:17:19 +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-25T00:00:00+00:00 List-Id: James Smith: > Too bad the US gov didn't save some taxpayer dollars by just adopting Modula > 2. Of course that would have made too much sense. To save dollars they also could have adopted C... With Modula-2, they should have spent perhaps more than Ada to make it usable... The main problem with Modula-2 is that it keeps the rigid types of "classic" Pascal. No problem for teaching or write a "Pascal in Pascal" compiler, but for the real world you need a flexible typing like "array(integer range <>) of..." The second problem is the modularity: you have to open manually the visibility for *all* identifiers you need! It made things easier for writing a compiler, but it rapidily took longer to write and maintain the "FROM...IMPORT..."s, with correct casing, than to write your programs. Just extrapolate the "Hello World" to have an idea... MODULE PrintHelloWorld; FROM InOut IMPORT WriteString, WriteLn; BEGIN WriteString('Hello world!'); WriteLn; END PrintHelloWorld. Another big problem was the library: there were vague recommendations for text I/O, and iirc, nothing more. As a result, even "Hello World" was non portable: some compilers wanted "WriteString('Hello world!');", others wanted "WRITESTRING('Hello world!');" I let you guess what the mess was with Math libraries... Finally I doubt that the average US programmer would have been patient enough to stand more than 5 minutes before Modula-2... Already in Europe many keyboards were severely damaged! ______________________________________________________ Gautier -- http://members.xoom.com/gdemont/gsoft.htm