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: Peter Hermann Subject: Re: obsolete ascii? (for language lawyers) Date: 1999/07/02 Message-ID: <7lhqs9$9c$1@infosun2.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 496333299 References: <7las7v$5p0$1@infosun2.rus.uni-stuttgart.de> Organization: Comp.Center (RUS), U of Stuttgart, FRG User-Agent: tin/pre-1.4-980117 (UNIX) (OSF1/V2.0 (alpha)) Newsgroups: comp.lang.ada Date: 1999-07-02T00:00:00+00:00 List-Id: Thanks to John Herro, David C. Hoos, Sr., Ted Dennison. I am afraid I did not explain my question precisely enough. With Ada95 we have a quite better type character, but I can't see any reason why i should not have the possibility to directly write down e.g. the bel-character, the ff-character, the cr-character, the esc-character etc. etc. as a simple identifier, the comfort of which will be removed as soon as the 'obsolete' package ascii will be removed! We even cannot write something like character'(bel) or the like. Sort of latin1.bel could do it? Are there better ideas? Or did I miss a given feature? Peter Hermann wrote: > LRM A.1(36) states an obsolete package ASCII. > > now look at my example: > > with text_io; > procedure hello is > bell : character := character'val(7); > --bell2 : character := bel; -- is not allowed :-( > begin > text_io.put_line ("Hallo Welt..." & ascii.bel & bell); > end hello; > What is the reason for this degradation? > Why then (zum Kuckuck!) is package ascii declared obsolete? > ------------------ > An additional remark: > text_io.put_line(ascii.bel); is not allowed, > because put_line (in contrast to put) does not > allow single characters as parameters. > This is hard to explain to a beginner and > therefore a nasty design decision for text_io: > having to obey to special cases. > Moreover, one could never say: > 'put_line' is a combined 'put' and a 'new_line', > for the sake of simplicity. -- Peter Hermann Tel+49-711-685-3611 Fax3758 ica2ph@csv.ica.uni-stuttgart.de Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen http://www.csv.ica.uni-stuttgart.de/homes/ph/ Team Ada: "C'mon people let the world begin" (Paul McCartney)