From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b6780b7c90e46c15 X-Google-Attributes: gid103376,public From: Bill Ghrist Subject: Re: Character Type? Date: 1999/01/27 Message-ID: <36AF1CB3.BC7741B4@pgh.net>#1/1 X-Deja-AN: 437613969 Content-Transfer-Encoding: 7bit References: <78lfbq$l16$1@ligarius.ultra.net> To: Chris Content-Type: text/plain; charset=us-ascii Organization: Myself Mime-Version: 1.0 Reply-To: ghristwd@pgh.net Newsgroups: comp.lang.ada Date: 1999-01-27T00:00:00+00:00 List-Id: 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