Structs: Able to change members of type Vector{Float64}, but not of type Float64

you’re literally mutating your struct so you need mutable struct.

in example.B, it’s different because .B still points to the same vector, you’re mutating the vector, not example itself.

2 Likes