comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: How do I use the package characters?
Date: 1996/10/08
Date: 1996-10-08T00:00:00+00:00	[thread overview]
Message-ID: <325A6015.1179@gsfc.nasa.gov> (raw)
In-Reply-To: DyxDvs.n54@most.fw.hac.com


Stephen M O'Shaughnessy wrote:
> 
> I would like to use the functions in the package characters.
> handling described in paragraph A.3.2 of the ARM.  How do I
> instantiate/reference these functions?
> 
> Thanks
> 
> Steve O

You need the full name of the package:

with Ada.Characters.Handling;
procedure Foo is
    A : CHARACTER;
begin
    ... other code that sets A

    if Ada.Characters.Handling.Is_Control (A) then
     ...
    end if;
end Foo;

or you can use the `use' clause:

with Ada.Characters.Handling;
use Ada.Characters.Handling;
procedure Foo is
    A : CHARACTER;
begin
    ... other code that sets A

    if Is_Control (A) then
     ...
    end if;
end Foo;

Happy coding!
-- 
- Stephe




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

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

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