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,5c1c45943bf6a5bc X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: 'first of strings returned from a function should be 1? Date: 1997/07/27 Message-ID: <5rebd8$7ji$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 259241757 Distribution: world References: <5rcaqi$le8$1@goanna.cs.rmit.edu.au> X-XXMessage-ID: Organization: Royal Melbourne Institute of Technology Newsgroups: comp.lang.ada Date: 1997-07-27T00:00:00+00:00 List-Id: Dale Stanbrough writes: " declare result_String : constant String := Some_Function (Params); result_char : constant Character := Result_String (1); begin " !I meant to write... declare result_String : constant String := Some_Function (Params); result_char : constant Character := Result_String (Result_String'First); begin Otherwise the two forms are (essentially) the same. Thanks for the comments anyway Matthew... Dale