comp.lang.ada
 help / color / mirror / Atom feed
From: johnherro@aol.com (John Herro)
Subject: Re: How do I use the package characters?
Date: 1996/10/09
Date: 1996-10-09T00:00:00+00:00	[thread overview]
Message-ID: <53fors$ln9@newsbf02.news.aol.com> (raw)


smosha@most.fw.hac.com (Stephen M O'Shaughnessy) wrote:
> A little digging and I realized that the work-
> stations where running Ada-83.  This is an
> Ada-95 package.
     I'm posting this before my earlier post appears in CLA, because I saw
Stephen's reply to Ben.  Yes, the package you mentioned is an Ada 95
package, and Ada 83 packages don't have children, hence no periods.
    But you can reference package ASCII in Ada 83, and the steps are a
little different, because ASCII is inside Standard, and you never have to
WITH Standard; it's automatically WITHed in every compilation.  You can
optionally write a USE clause for ASCII, but it goes in the declarative
region of your program.  For example, here are two ways to beep the
terminal in Ada 83:
-----
with Text_IO;
procedure Beep is
begin
   Text_IO.Put(ASCII.BEL);
end Beep;
-----
with Text_IO; use Text_IO;
procedure Beep is
   use ASCII;
begin
   Put(BEL);
end Beep;

- John Herro
Software Innovations Technology
You can download an Ada Tutor program at:
http://members.aol.com/AdaTutor
ftp://members.aol.com/AdaTutor




             reply	other threads:[~1996-10-09  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-09  0:00 John Herro [this message]
1996-10-09  0:00 ` How do I use the package characters? Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1996-10-09  0:00 John Herro
1996-10-07  0:00 Stephen M O'Shaughnessy
1996-10-08  0:00 ` Stephen Leake
1996-10-08  0:00 ` Robert Dewar
1996-10-08  0:00 ` Stephen M O'Shaughnessy
1996-10-09  0:00 ` Michael Feldman
replies disabled

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