From ... Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed1.telenordia.se!news.algonet.se!algonet!newsfeed1.bredband.com!bredband!uio.no!Norway.EU.net!127.0.0.1!nobody From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: How to concatenate with a String with fill-pointer Date: 05 Dec 2000 01:45:21 +0000 Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net Lines: 19 Message-ID: <3184969521992515@naggum.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: oslo-nntp.eunet.no 975982621 28936 195.0.192.66 (5 Dec 2000 02:17:01 GMT) X-Complaints-To: newsmaster@eunet.no NNTP-Posting-Date: 5 Dec 2000 02:17:01 GMT mail-copies-to: never User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: supernews.google.com comp.lang.lisp:4709 * Nils Goesche | Isn't there some kind of a built-in (and hopefully faster) function to | replace nstrcat? Note that something like (concatenate (type-of str1) | str1 str2) doesn't work (at least not in CMUCL), because the resulting | string doesn't have a fill pointer anymore; also, I am not sure | whether this operation would be destructive, anyway :-) | | Any ideas? Move the fill-pointer and perhaps extend the array far enough that you have room for the new string, and then use (setf (subseq ...) ...) to store into the string. This modifies the target string, of course. #:Erik -- "When you are having a bad day and it seems like everybody is trying to piss you off, remember that it takes 42 muscles to produce a frown, but only 4 muscles to work the trigger of a good sniper rifle." -- Unknown