comp.lang.ada
 help / color / mirror / Atom feed
* A quickie problem with an array and a right hand bracket
@ 2001-06-11 17:08 chris.danx
  2001-06-11 17:24 ` Ted Dennison
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: chris.danx @ 2001-06-11 17:08 UTC (permalink / raw)


Hello everyone,

I'm trying to provide an array for quickie conversion between numbers and
character equivalents like this

    type array_16 is array (natural range 0..15) of character;

    basic_16 : constant array_16 := ('0'..'9'|'a'..'f');

The compiler corrected me on the use of a comma where the dda ("d divides a",
from math sorry, it's a bar or more symbol) but this doesn't help with
"unexpected parenthesis error" when it's compiled.  What's the problem?  It
looks correct to me but clearly i am missing something (very subtle) point.

In case i get the use text_io and tear off the start and end parts for
displaying in other bases argument.  I do not want to use text_io in this manner
since i want to remove (as much as possible) dependance on the standard packages
(for now).


Thanks,
Chris Campbell





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

end of thread, other threads:[~2001-06-12 10:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-11 17:08 A quickie problem with an array and a right hand bracket chris.danx
2001-06-11 17:24 ` Ted Dennison
2001-06-11 22:45 ` Jeffrey Carter
2001-06-12 10:01 ` chris.danx

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