"common lisp's copy-tree: which objects will be referenced in common by the original and the copy?" Code Answer

2

i check the web-version, a pdf version and the hard cover. the first two are wrong as you state. the hard cover states this (bold emphasis is mine):

where a cons cell in the original referenced an atomic value, the corresponding cons cell in the copy will reference the same value. thus, the only objects referenced in common by the original tree and the copy produced by copy-tree are the numbers 1-6, and the symbol nil.

so the hard cover book is correct.

By Vrajni on July 24 2022

Answers related to “common lisp's copy-tree: which objects will be referenced in common by the original and the copy?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.