Skip to content

Accidental access to uninitialized memory? #70

@scheidan

Description

@scheidan

By chance I came across this behavior:

ca = ComponentVector(a=1, b=2, c=3)
ca[:a, :b]   # returns 'random' number, probably some uninitialized memory
ca[:a, :x]   # errors, ":x not found"

I think it would be safer if it would error in both cases.

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