comp.lang.ada
 help / color / mirror / Atom feed
From: Peter Hermann <ica2ph@alpha1.csv.ica.uni-stuttgart.de>
Subject: Re: obsolete ascii? (for language lawyers)
Date: 1999/07/02
Date: 1999-07-02T00:00:00+00:00	[thread overview]
Message-ID: <7lhqs9$9c$1@infosun2.rus.uni-stuttgart.de> (raw)
In-Reply-To: 7las7v$5p0$1@infosun2.rus.uni-stuttgart.de

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 <ica2ph@alpha1.csv.ica.uni-stuttgart.de> 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)




  parent reply	other threads:[~1999-07-02  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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