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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,789b3fa522bdcc2a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-04 19:28:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc04.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Optimising string handling in application References: <1049453076.981330@edh3> X-Newsreader: Tom's custom newsreader Message-ID: <93sja.331264$F1.54556@sccrnsc04> NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1049513285 12.234.13.56 (Sat, 05 Apr 2003 03:28:05 GMT) NNTP-Posting-Date: Sat, 05 Apr 2003 03:28:05 GMT Organization: AT&T Broadband Date: Sat, 05 Apr 2003 03:28:05 GMT Xref: archiver1.google.com comp.lang.ada:35946 Date: 2003-04-05T03:28:05+00:00 List-Id: > Replace_Callsign_In_Msg > (Msg => Loc_Insert_Msg.Data(2..Loc_Insert_Msg.Data'Last), >Can I assume that 'First of Msg inside Replace_Callsign_In_Msg =1? It depends on whether the formal parameter is constrained or unconstrained. This program prints " 13 3" with ada.text_io; procedure testp is subtype teens is integer range 13 .. 19; subtype constrained is string(teens); x : string(3 .. 9); procedure p(c : constrained; u : string) is begin ada.text_io.put_line(integer'image(c'first) & integer'image(u'first)); end p; begin p(x,x); end testp;