Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!ix.netcom.com!netcom.com!bakul
From: bakul@netcom.com (Bakul Shah)
Subject: Re: why no substring sharing?
Message-ID: <bakulCzwEzw.Fp4@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: <SCHWARTZ.94Nov26162039@galapagos.cse.psu.edu>
Date: Sat, 26 Nov 1994 23:38:19 GMT
Lines: 7

schwartz@galapagos.cse.psu.edu (Scott Schwartz) writes:

>Why does substring return a newly allocated string?

Because string-set! on the substring or the original string
should not affect the other string.  May be strings and vectors
should be implemented using the copy-on-write technique....
