From: Peter Hermann <ica2ph@alpha1.csv.ica.uni-stuttgart.de>
Subject: obsolete ascii? (for language lawyers)
Date: 1999/06/29
Date: 1999-06-29T00:00:00+00:00 [thread overview]
Message-ID: <7las7v$5p0$1@infosun2.rus.uni-stuttgart.de> (raw)
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)
next reply other threads:[~1999-06-29 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-29 0:00 Peter Hermann [this message]
1999-06-29 0:00 ` obsolete ascii? (for language lawyers) John Herro
1999-07-02 0:00 ` Peter Hermann
1999-06-29 0:00 ` David C. Hoos, Sr.
1999-06-29 0:00 ` Ted Dennison
1999-07-02 0:00 ` Peter Hermann
1999-07-02 0:00 ` Robert A Duff
1999-07-02 0:00 ` Robert Dewar
1999-07-02 0:00 ` Keith Thompson
1999-07-03 0:00 ` Robert Dewar
1999-07-03 0:00 ` Keith Thompson
1999-07-08 0:00 ` John Duncan
1999-07-08 0:00 ` Tucker Taft
1999-07-02 0:00 ` Ted Dennison
1999-07-02 0:00 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox