[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Namestring&pathstring returning shared structure
- To: mitccc!DCP%QUABBIN.SCRC.Symbolics.COM%mc@angel.ARPA
- Subject: Namestring&pathstring returning shared structure
- From: lmi-angel!gjc%mc.ARPA
- Date: Mon, 23 Jun 1986 18:27:00 -0000
- Date: Mon, 23 Jun 1986 17:40:00 -0000
- Cc: mitccc!common-lisp%SU-AI%mc@angel.ARPA
Why stop at strings Dave? Another win would be immutable list
structure. Think of it, (as the CLU'ist remarked) you can pass a whole
list to a function without having to worry about the possible RPLACA or RPLACD
operations it may do!
Actually, one could make this into a serious suggestion. Certainly most systems
have so-called pure areas, for example, in the LMI system you get a
write-into-read-only-memory error if you do (setf (aref (get-pname 'foo) 0) #\X),
and perhaps this feature could actually be presented in a system-independant way.
Something along the lines of "if the pure-structure feature is provided then
the primitives should be called PURE-COPY (or PURCOPY) and PURE-P."