# Spooky action at distance not applicable to vectors?

**URL:** <https://discourse.julialang.org/t/spooky-action-at-distance-not-applicable-to-vectors/79602>\
**Category:** General Usage\
**Tags:** scope\
**Created:** [April 17, 2022, 2:48pm UTC](https://discourse.julialang.org/t/spooky-action-at-distance-not-applicable-to-vectors/79602 "2022-04-17T14:48:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [April 17, 2022, 2:53pm UTC](https://discourse.julialang.org/t/spooky-action-at-distance-not-applicable-to-vectors/79602/2 "2022-04-17T14:53:42Z")

</div>

Assignment and mutation are different things:

> [@Assignment and mutation](https://discourse.julialang.org/t/assignment-and-mutation/19119/4):
>
> The simplest version of this I can come up with is this: Assignment changes which object a name refers to: x = ex causes the name x to refer to the value resulting from the evaluation of the expression ex. Assignment never changes the values of any objects. Mutation changes the value of an object: x[i] = ex and x.f = ex both mutate the object referred to by x changing a value at index or a property with a name, respectively. Mutation never changes what objects any names in any scope refer …

---

_[View the full topic](https://discourse.julialang.org/t/spooky-action-at-distance-not-applicable-to-vectors/79602)._
