Skip to content

jl_array_del_beg and friends refuse to resize an array when only temporary data is actually shared #4592

@carlobaldassi

Description

@carlobaldassi

Example:

julia> splice!(vec([x+y for x in [1,2], y in [3,4]]), 1)
ERROR: cannot resize array with shared data
 in splice! at array.jl:771
 in anonymous at no file

Since the matrix is temporary, no data is actually shared, and the call should succeed.

Related issue: #4311

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