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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7a83623780b9aa09 X-Google-Attributes: gid103376,public From: Chris Morgan Subject: Re: Are there any automatic tools to convert ada83 source into ada95? Date: 1998/12/29 Message-ID: <87n247z2yk.fsf@mihalis.ix.netcom.com>#1/1 X-Deja-AN: 426724469 Sender: cm@mihalis.ix.netcom.com References: <766l70$dh1$1@nnrp1.dejanews.com> <87vhiv3m7j.fsf@mihalis.ix.netcom.com> <769fl1$mcr$1@nnrp1.dejanews.com> Organization: Linux Hackers Unlimited X-NETCOM-Date: Tue Dec 29 3:53:16 AM CST 1998 Newsgroups: comp.lang.ada Date: 1998-12-29T03:53:16-06:00 List-Id: robert_dewar@my-dejanews.com writes: > > when CONSTRAINT_ERROR => > > DO_SOMETHING; > > when NUMERIC_ERROR => > > DP_SOMETHING_ELSE; > > ... > > > > which is no longer legal. > > > To be clear on this point, this was highly dubious code > in Ada 83, since Ada 83 compilers were allowed to raise > Constraint_Error instead of Numeric_Error in any situation. Right, but ours didn't. > > So the above code was dubious, implementation-dependent > Ada 83 code in any case. Yes, fine, but since it was custom hardware and we maintained our version of the compiler, I think we were allowed ;) I didn't like that bit of code anyway, but it was in the coding standard. If either type of exception happened the error was noted via interconnect space on the bus and the node restarted, so it was merely statistical info. Any code where we really did get exceptions like this would normally have ben fixed up, so in production use they were really "exceptional". One famous one I enjoyed was when I rang back to base from the testing facility where our software was being fed simulated data. "It crashed, I got a constraint error in foo_bar_package" "What was the area code?" .... "In that case the submarine's inclination was -180 degrees!!" Yep, you guessed it, someone did an abs() of -32768 Chris -- Chris Morgan http://www.mihalis.net "At least my mother isn't on the cover of Crack Whore magazine"