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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4fbd260da735f6f4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Copying string slices before calling subroutines? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <0hj5339mjmond132qhbn2o01unurs61lbj@4ax.com> <1178091967.392381.282510@o5g2000hsb.googlegroups.com> <5dv3wh6scrh1.2986pbvdw8y2$.dlg@40tude.net> <4oppvmc6anir.g0mz9mrahmdo.dlg@40tude.net> <4akrg4-mot.ln1@newserver.thecreems.com> Date: Sat, 5 May 2007 09:47:55 +0200 Message-ID: NNTP-Posting-Date: 05 May 2007 09:47:21 CEST NNTP-Posting-Host: 74a944b1.newsspool3.arcor-online.net X-Trace: DXC=7MT8_@f9oWC2jYf>V4L0gLMcF=Q^Z^V3H4Fo<]lROoRAFl8W>\BH3YB7Ec9Imkc`hODNcfSJ;bb[EIRnRBaCd On Sat, 05 May 2007 09:33:26 +0200, Jacob Sparre Andersen wrote: > We should also remember that for a compiler writer team, Mapping = > Maps.Identity may not be the normal case. An alternative could be to change A.4.3. towards two Index functions instead of one: function Index (Source : in String; Pattern : in String; Going : in Direction := Forward; Mapping : in Maps.Character_Mapping) return Natural; function Index (Source : in String; Pattern : in String; Going : in Direction := Forward) return Natural; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de