comp.lang.ada
 help / color / mirror / Atom feed
* obsolete ascii? (for language lawyers)
@ 1999-06-29  0:00 Peter Hermann
  1999-06-29  0:00 ` David C. Hoos, Sr.
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Peter Hermann @ 1999-06-29  0:00 UTC (permalink / 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)




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~1999-07-08  0:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-29  0:00 obsolete ascii? (for language lawyers) Peter Hermann
1999-06-29  0:00 ` David C. Hoos, Sr.
1999-06-29  0:00   ` Ted Dennison
1999-06-29  0:00 ` John Herro
1999-07-02  0:00   ` Peter Hermann
1999-07-02  0:00 ` Peter Hermann
1999-07-02  0:00   ` Ted Dennison
1999-07-02  0:00     ` Ted Dennison
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           ` Tucker Taft
1999-07-08  0:00           ` John Duncan
1999-07-02  0:00   ` Robert A Duff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox