From: Sam S. <sd...@gn...> - 2000-06-28 16:27:25
|
Bruno Haible wrote: > > Sam writes: > > It appears the the result of (READ stream) can be a read-only string on > > linux (make system in clocc/src/cllib gives the error "Attempt to modify > > a read-only string"). > > Is this true? > > Is this a bug? > > Congratulations, you found a bug in CLOCC. Read-only strings in CLISP > are currently > 1. Symbol names (I hope the bug is not in this category!), > 2. Literal strings read from program source files. > Quoting HyperSpec/Body/speope_quote.html: > "The consequences are undefined if literal objects (including > quoted objects) are destructively modified." Are you saying that this is illegal? [1]> (read-from-string "\"a\"") "a" ; 3 [2]> (setf (char * 0) #\b) #\b [3]> ** "b" [4]> |