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,56760b0ebeac6ba1 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Need of help Leonid(dulman@ibm.net) Date: 1997/02/17 Message-ID: #1/1 X-Deja-AN: 219421399 References: <5dhbjt$hbe@news.ibm.net.il> <3302387F.16BB@mds.lmco.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-02-17T00:00:00+00:00 List-Id: Rex said < Standard_String'Length , S => Standard_String ) ; end V_String_Of ; I liked this code because it did not require creating a temporary variable on the stack, particularly if the string was very large. However, it failed whenever a substring was passed which had a starting index other than 1:>> What makes you think that this code will not require a temporary variable on the stack? Just because you don't see it in the source, does not mean it is not there. Of course compilers will differ. To see what GNAT is doing, use the -gnatdg switch, which shows the expanded source.