comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <chris.danx@ntlworld.com>
Subject: A quickie problem with an array and a right hand bracket
Date: Mon, 11 Jun 2001 18:08:22 +0100
Date: 2001-06-11T18:08:22+01:00	[thread overview]
Message-ID: <eV6V6.8331$6d5.1657665@news2-win.server.ntlworld.com> (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





             reply	other threads:[~2001-06-11 17:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-11 17:08 chris.danx [this message]
2001-06-11 17:24 ` A quickie problem with an array and a right hand bracket Ted Dennison
2001-06-11 22:45 ` Jeffrey Carter
2001-06-12 10:01 ` 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