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,FREEMAIL_FROM, 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: johnherro@aol.com (John Herro) Subject: Re: obsolete ascii? (for language lawyers) Date: 1999/06/29 Message-ID: <19990629133145.27461.00002805@ngol03.aol.com>#1/1 X-Deja-AN: 495268347 References: <7las7v$5p0$1@infosun2.rus.uni-stuttgart.de> Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada X-Admin: news@aol.com Date: 1999-06-29T00:00:00+00:00 List-Id: Peter Hermann writes: > 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; Although ASCII is part of package Standard, and Standard is automatically WITHed and USEd in every compilation, ASCII isn't automatically USEd. You must make use of dot notation or explicitly USE ASCII. The above will compile, even with the declaration of bell2 uncommented, if you write "ASCII.bel" instead of "bel" or write "use ASCII;" immediately AFTER "procedure hello is". - John Herro You can download a shareware AdaTutor program at http://members.aol.com/AdaTutor