Skip to content

copy-tree does not copy float-vector #475

Open
@knorth55

Description

@knorth55

I know copy-tree is for list, but copy-tree returns no error with float-vector and does not copy the vector.
It is better to warn copy-tree with float-vector.

1.irteusgl$ (setq a  (float-vector 1 2 3))
#f(1.0 2.0 3.0)
2.irteusgl$ (setq b (copy-tree a))
#f(1.0 2.0 3.0)
3.irteusgl$ (setf (elt b 0) 5)
5
4.irteusgl$ a
#f(5.0 2.0 3.0)
5.irteusgl$ b
#f(5.0 2.0 3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions