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,start X-Google-Attributes: gid103376,public From: Peter Hermann Subject: obsolete ascii? (for language lawyers) Date: 1999/06/29 Message-ID: <7las7v$5p0$1@infosun2.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 495244711 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-06-29T00:00:00+00:00 List-Id: 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)