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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,74d953d10520ed5e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-31 20:41:00 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: using charles library Date: Sat, 31 May 2003 22:42:10 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3ED2EB15.7B74D21E@somewhere.nil> <3ED6957F.9405D316@somewhere.nil> <3ED896EC.CF303D93@somewhere.nil> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:38265 Date: 2003-05-31T22:42:10-05:00 List-Id: Gautier Write-only wrote in message <3ED896EC.CF303D93@somewhere.nil>... >> Of course, a particular compiler might allow it anyway. That's one >> difference between Ada and nearly every other programming language: Ada >> compilers are tested for conformance. An Ada compiler that tried to >> allow 1.e-5 would fail to pass the conformity tests and would be fixed. >> Other languages aren't tested, and code that doesn't work on another >> compiler is the result. > >... and Pascal is a remarkable example (if not the worst) of >fragmentation into incompatible dialects - we can forgive it since >the language was designed for teaching programmation. >And this is exaclty why a Pascal->Ada translator is useful ;-)! >And, of course, a translator must understand the most possible >dialects. It should translate "bih:=1.e-5;" into "bih:=1.0e-5;" >and go on, instead of stopping. A worthy goal, but practically impossible. The different dialects of Pascal aren't even lexically or syntactically compatible (as you found out trying to make this change). We decided that the only practical thing to do was to make a semi-custom version for each customer (particularly as it is the wildly varying separate compilation features of the different Pascal's that matter the most). Randy.