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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aed6eac65b3bc766 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-11 10:24:55 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: A quickie problem with an array and a right hand bracket Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Mon, 11 Jun 2001 13:24:04 EDT Organization: http://www.newsranger.com Date: Mon, 11 Jun 2001 17:24:04 GMT Xref: archiver1.google.com comp.lang.ada:8559 Date: 2001-06-11T17:24:04+00:00 List-Id: In article , chris.danx says... >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'); I don't think you can use the '|' character that way. I'm not sure what your right hand side would even mean if it were valid. Probably the easiest way to do this would be: basic_16 : constant array_16 := "0123456789abcdef"; Of course it would be even easier to just use "String" (or a subtype thereof) instead of making your own character array type. But you may have your reasons for that. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com