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 14:17:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!slip-12-64-78-122.mis.prserv.NET!not-for-mail From: Vinzent Hoefler Newsgroups: comp.lang.ada Subject: Re: advantages or disadvantages of ADA over pascal or modula Date: Sat, 04 Jan 2003 17:16:44 -0500 Organization: JeLlyFish software Message-ID: References: NNTP-Posting-Host: slip-12-64-78-122.mis.prserv.net (12.64.78.122) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1041718650 13020346 12.64.78.122 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:32547 Date: 2003-01-04T17:16:44-05:00 List-Id: "Steve" wrote: >After maintaining both Pascal and Ada code, I wholeheartedly disagree that >Ada's renaming is equivalent to Pascal's with. > >If you're trying to analyze Pascal code that looks something like: > > with a, b, c, d do > begin > field1 := fieldA > end; *eeek* >Tracking down where the !@** field1 and fieldA come from is non trivial. In >fact if these fields exist in more than one of the a, b, c, d records it may >be compiler dependent. No, AFAIK it should be the last mentioned, because "with a, b, c, d" is nothing else than saying "with a with b with c with d". >Side note: I worked on a Pascal to Ada translator that converted with blocks >to declare blocks with renaming. A few bugs became readily apparent when >the full qualification in the renaming was shown. The code looked like the example above? No wonder. Vinzent.