Vassil Nikolov <firstname.lastname@example.org> wrote:
| email@example.com said:
| | I know what modification of literals does generally, but is it still
| | undefined if performed outside a loop at the REPL? The read and
| | evaluation occur directly after each other and no code is revisited.
| As soon as a form is evaluated, any literals in it may be placed in
| read-only memory (perhaps as a side effect of compilation on the fly).
A conservative reading of CLHS glossary item for "literal"
would suggest tightening that to say:
As soon as a form is READ any literals in it may be
placed in read-only memory...
since self-evaluating objects are also considered to be
"literal data", not just forms wrapped in QUOTE.
The "Description" section of "Special Operator QUOTE"
is consistent with this.
Rob Warnock <firstname.lastname@example.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607