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.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9d2e7de2b6057996 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe22.iad.POSTED!92f42029!not-for-mail From: "Steve D" Newsgroups: comp.lang.ada References: <59ccf9ff-86ea-4179-8be3-a7f99218eeb5@q40g2000prh.googlegroups.com> In-Reply-To: <59ccf9ff-86ea-4179-8be3-a7f99218eeb5@q40g2000prh.googlegroups.com> Subject: Re: Comparison Operators for Strings MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Wed, 26 Aug 2009 01:37:10 UTC Organization: TeraNews.com Date: Tue, 25 Aug 2009 18:37:06 -0700 Xref: g2news2.google.com comp.lang.ada:7978 Date: 2009-08-25T18:37:06-07:00 List-Id: "Rick" wrote in message news:59ccf9ff-86ea-4179-8be3-a7f99218eeb5@q40g2000prh.googlegroups.com... > How do the comparison operators for Strings (Fixed-length, Unbounded, > whatever) actually work? I am using Unbounded_String at the moment > and in the LRM I find: > > 83 Each of the functions "=", "<", ">", "<=", and ">=" returns the > same result as the corresponding String operation applied to the > String values given or represented by Left and Right. > > I have checked LRM 2.6, 3.6.3, and A.4 to A.4.8 and I cannot find a > result for a corresponding String operation. > > Where should I be looking? > LRM 4.5.2 Relational Operators an Membership tests Paragraph (18) The type "String" is nothing special and is defined in System: type String is array(Positive range <>) of Character; pragma Pack(String); You compare strings the same way as you can any other one dimensional array as described in 4.5.2(18) Regards, Steve > -------------------------------------------- > Rick Duley > North Perth, > Western Australia > http://rickduley.webs.com > --------------------------------------------