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,decb0c44a2cbd5dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-31 22:15:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: How to delete charcters in a string? References: <4519e058.0201310647.3637d7a9@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 64.175.242.29 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1012544042 ST000 64.175.242.29 (Fri, 01 Feb 2002 01:14:02 EST) NNTP-Posting-Date: Fri, 01 Feb 2002 01:14:02 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: [[PAPDCA[S@[SPTX\JKXOFXBWR\HPCTL@XT^OBPLAH[\RYIBK^RAQFW[ML\THRCKV^GGZKJMGV^^_JSCFFUA_QXFGVSCYRPILH]TRVKC^LSN@DX_HCAFX__@J\DAJBVMY\ZWZCZLPA^MVH_P@\\EOMW\YSXHG__IJQY_@M[A[[AXQ_XDSTAR]\PG]NVAQUVM Date: Fri, 01 Feb 2002 06:14:02 GMT Xref: archiver1.google.com comp.lang.ada:19456 Date: 2002-02-01T06:14:02+00:00 List-Id: >the techniques you may have learned for dealing with dynamic C strings >are liable to be completely inappropriate for dealing with fixed Ada strings. How would you delete a character from a C string? Seems to me that's probably harder that with an Ada string (lack of slice assignment), unless, of course, you selectively copy to a new string. And if you really need in-band signalling, you don't have to have a Last variable, but can put a null where your string logically ends, just like C.