Adam DePrince wrote:

> No reason we can't make other string operations views as well ...
> concatenation is one example.  If I recall, that's how snobol handles
> strings, view upon view upon view.

I don't think it was quite as bad as that. If I
remember correctly, when you took a substring
you didn't get a view of a view, but another
view of the underlying layer holding the
characters. And there was some way of detecting
when parts of the underlying buffer were no
longer used and freeing them.

One strange thing Snobol did do was effectively
intern every string, though. And it had some
weird-assed name for them like "natural variable"
or some such...

--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to