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,42b8b2c27439b7d0 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: obsolete ascii? (for language lawyers) Date: 1999/07/02 Message-ID: #1/1 X-Deja-AN: 496653697 References: <7las7v$5p0$1@infosun2.rus.uni-stuttgart.de> <7lhqs9$9c$1@infosun2.rus.uni-stuttgart.de> <7ljde7$o4j$1@nnrp1.deja.com> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 930973519 24163 198.68.168.21 (3 Jul 1999 03:45:19 GMT) Organization: CTS Network Services NNTP-Posting-Date: 3 Jul 1999 03:45:19 GMT Newsgroups: comp.lang.ada Date: 1999-07-03T03:45:19+00:00 List-Id: Robert Dewar writes: > Don't worry, there is no possibility whatsoever of anyone > doing anything so idiotic as to create major incompatibilities > by removing package Ascii. Even if the ISO committee did make > a silly decision like this, vendors would put it back. Agreed. > The whole business of obsolescent features is in my view > completely silly. The features in annex J are so small and > marginal, that to remove them would not begin to be worth > the headaches caused by legacy code. > > You should feel free to use any of these features without > the slightest hesitation in my view. Here, I have to disagree. Part of the point of declaring a feature to be obsolescent is to warn that it might be removed in a future version of the standard. (I agree that this isn't likely to happen.) The more important reason, however, is to let people know that there's a newer, better way to do the same thing. These are features that are in the language *only* to support legacy code; if the language were being designed from scratch today, they wouldn't be there. I wouldn't use '%' as a string literal delimiter, or write a context clause for Text_IO (rather than Ada.Text_IO), or a handler for Numeric_Error, in new code -- not because I expect any of those features to vanish, but because it's bad style. (I wonder how many Ada programmers even know that this: with Text_IO; procedure Obsolesce is X : Integer := 16:FF:; begin Text_IO.Put_Line(%X = % & Integer'Image(X)); end Obsolesce; is valid.) On the other hand, if you have legacy code that uses these features, it's not worth going back and changing it unless you're doing a major rewrite anyway. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> One of the great tragedies of ancient history is that Helen of Troy lived before the invention of the champagne bottle.