[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simultaneous generational GC and error-check immutables?
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de, haible@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Re: Simultaneous generational GC and error-check immutables?
- From: haible (Bruno Haible)
- Date: Thu, 8 Dec 94 16:36:55 +0100
Mark Thomas <thommark@access.digex.net> tried this:
> ... following the instructions to enable
> better error-checking of immutables. (I assume I automatically got
> generational garbage-collection.)
No, you didn't get generational GC; CLISP does not yet support immutable
checking and generational GC simultaneously.
> But the following sequence of forms gives no error message
> > (defvar temp-string "Matson")
> > (setf (char temp-string 0) #\W)
Immutable checking is only done for immutable objects whose printed represen-
tation has been read from a file, using LOAD. I felt it would be annoying,
especially for beginners, to get errors when evaluating forms like
(nreverse '(a b c))
(nstring-upcase "My Name")
interactively.
Bruno Haible
haible@ma2s2.mathematik.uni-karlsruhe.de