Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!j.cc.purdue.edu!brazil.psych.purdue.edu!zhou From: zhou@brazil.psych.purdue.edu (Albert Zhou) Newsgroups: comp.lang.pascal Subject: Re: string ghosts Message-ID: <11790@j.cc.purdue.edu> Date: 3 Mar 91 09:13:09 GMT References: <26159@adm.brl.mil> <1991Feb28.180622.137@csc.canterbury.ac.nz> Sender: news@j.cc.purdue.edu Reply-To: zhou@brazil.psych.purdue.edu (Albert Zhou) Organization: Purdue University Lines: 4 A string is like a pointer. After the length of a string becomes 0, its old content does not disappear. For example, x = 'I am here.'. after you assign x = 'I', its old content 'I am here' is still available. The only change is x[0] is 1 instead of 5 now.