'In Julia, after A = B, changing elements of B will modify A as well. Is it so? [duplicate]

While reading Julia documentation in the section "Noteworthy differences from C/C++":

"Julia arrays are not copied when assigned to another variable. After A = B, changing elements of B will modify A as well. Updating operators like += do not operate in-place, they are equivalent to A = A + B which rebinds the left-hand side to the result of the right-hand side expression."

But I tried this, it is not happening i.e. changing B is not changing A. (I tried with 2x2 Matrix)

Can someone explain what this para means?

i tried the following code:

julia> m=Array(zeros(2,2))
2×2 Matrix{Float64}:
 0.0  0.0
 0.0  0.0

julia> k=m
2×2 Matrix{Float64}:
 0.0  0.0
 0.0  0.0

julia> k
2×2 Matrix{Float64}:
 0.0  0.0
 0.0  0.0

julia> m=Array(ones(2,2))
2×2 Matrix{Float64}:
 1.0  1.0
 1.0  1.0

julia> k
2×2 Matrix{Float64}:
 0.0  0.0
 0.0  0.0


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source