ANSI Common-Lisp says that consequences of redefining a defstruct
are
undefined. ECL defines this behavior to signal an error if the new
structure is not compatible. Structures are incompatible when:
This is particularly important for other structures which could have included the current one and for already defined instances.
Binary compatibility between old and new instances.
Common Lisp and C equivalence
Lisp symbol | C function |
---|---|
copy-structure | cl_object cl_copy_structure(cl_object structure) |