comp.lang.ada
 help / color / mirror / Atom feed
From: Bill Ghrist <ghristwd@pgh.net>
To: Chris <cmrad@ma.ultranet.com>
Subject: Re: Character Type?
Date: 1999/01/27
Date: 1999-01-27T00:00:00+00:00	[thread overview]
Message-ID: <36AF1CB3.BC7741B4@pgh.net> (raw)
In-Reply-To: 78lfbq$l16$1@ligarius.ultra.net

Well, I'm pretty new with Ada, but the obvious problem, I think, is that
'10' is not a character, it is a string. 

Regards,
Bill Ghrist

Chris wrote:
> 
> I have to make a program that can declare a range of characters from
> '1'..'10'  I have been trying everything but I can't seem to find anything
> that will work.  This is what I have so far:
> 
> SUBTYPE Index IS Character RANGE  '1'..'10';
> 
> TYPE X IS ARRAY (Index) OF Character;
> TYPE Y IS ARRAY (Index) OF Character;
> 
> Any help would be GREATLY appreciated.
> 
> ~Chris




  parent reply	other threads:[~1999-01-27  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-26  0:00 Character Type? Chris
1999-01-26  0:00 ` Tom Moran
1999-01-27  0:00 ` Bill Ghrist [this message]
1999-01-27  0:00   ` Simon Wright
1999-01-28  0:00   ` robert_dewar
replies disabled

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