Next: Transfer of Control during a Destructive Operation, Previous: Destructive Operations, Up: Destructive Operations
The consequences are undefined if literal objects are destructively modified. For this purpose, the following operations are considered destructive:
Using it as an argument to the function random.
Changing the car_1 or cdr_1 of the cons, or performing a destructive operation on an object which is either the car_2 or the cdr_2 of the cons.
Storing a new value into some element of the array, or performing a destructive operation on an object that is already such an element.
Changing the fill pointer, dimensions, or displacement of the array (regardless of whether the array is actually adjustable).
Performing a destructive operation on another array that is displaced to the array or that otherwise shares its contents with the array.
Performing a destructive operation on any key.
Storing a new value_4 for any key, or performing a destructive operation on any object that is such a value.
Adding or removing entries from the hash table.
Storing a new value into any slot, or performing a destructive operation on an object that is the value of some slot.
Storing a new value into any slot, or performing a destructive operation on an object that is the value of some slot.
Changing the class of the object (e.g., using the function change-class).
Altering the readtable case.
Altering the syntax type of any character in this readtable.
Altering the reader macro function associated with any character in the readtable, or altering the reader macro functions associated with characters defined as dispatching macro characters in the readtable.
Performing I/O operations on the stream, or closing the stream.
[This category includes, for example, character, condition, function, method-combination, method, number, package, pathname, restart, and symbol.]
There are no standardized destructive operations defined on objects of these types.
Next: Transfer of Control during a Destructive Operation, Previous: Destructive Operations, Up: Destructive Operations