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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,912597791e813f68 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-04 09:16:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!fr.colt.net!deine.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: advantages or disadvantages of ADA over pascal or modula Date: Sat, 04 Jan 2003 18:12:50 +0100 Organization: T-Online Message-ID: <3E171612.E4E2972@t-online.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1041700500 03 547 XucCEjrSCAyAI 030104 17:15:00 X-Complaints-To: abuse@t-online.com X-Sender: 320001779794-0001@t-dialin.net X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de Xref: archiver1.google.com comp.lang.ada:32532 Date: 2003-01-04T18:12:50+01:00 List-Id: karl bowl schrieb: > > I would like to ask anybody to tell me about advantages or disadvantages of > ADA(95) over pascal or modula(2). > Many thanks in advance > > Nic As an advance I see sometimes the tasking that is part of the language. It makes development of "multi-threated" applications more easy. I often use tasks in GUI applications to do the work. This prevents the application from blocking the desktop. Compared to Modula-2 I see the following disadvantages: - No equivalent to the "WITH" from Modula (Adas "with" has a totally different meaning). This often produces long and bad readable code. - No construct like Modulas "ARRAY OF BYTE" parameter that catches up _all_ parameters. - No _real_ hidden export. You can define types to be "private" in your spec, but if you want change the definition (let's say from a pointer to a four byte hash key), you have to change the package spec (= DEFINITION MODULE) and then recompile _all_ importing modules (although it's only an internal change to your implementation). - No equivalent to the "final" from Java. So even if you made your definition "private" everyone is allowed to declare a child package which then can access this data. And mostly the Ada-Compilers generate bigger exe-files than Modula-compilers do.