comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <chris.danx@ntlworld.com>
Subject: Re: Converting Mod types to Character types...
Date: Tue, 15 May 2001 09:47:22 +0100
Date: 2001-05-15T09:47:22+01:00	[thread overview]
Message-ID: <R16M6.12260$tU6.1669449@news2-win.server.ntlworld.com> (raw)
In-Reply-To: mailman.989883373.1404.comp.lang.ada@ada.eu.org


"Beard, Frank" <beardf@spawar.navy.mil> wrote in message
news:mailman.989883373.1404.comp.lang.ada@ada.eu.org...
> Actually, since modular types fall into the universal integer
> category, the conversion is even easier:
>
>   char : character := ' ';
>   uc   : Interfaces.C.unsigned_char := 65;
>
> begin
>
>   char := character'val(uc);  -- char is now 'A'
>
> Frank

It works now.

Thanks,
Chris Campbell








  reply	other threads:[~2001-05-15  8:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-14 23:34 Converting Mod types to Character types Beard, Frank
2001-05-15  8:47 ` chris.danx [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-14 23:30 Beard, Frank
2001-05-14 22:49 chris.danx
replies disabled

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