On Fri, May 01, 1998 at 12:29:42AM -0700, Ben Wing wrote:
In the specifier code and in a lot of other code that I wrote, I had
copy internal lists whenever they were returned just to make sure that
malicious code couldn't mess things up by modifying them. This is
inefficient, and could be avoided if we had read-only lists. The same
thing goes for strings, although they aren't generally copied.
What do you want exactly, read-only or copy-on-write ?