# Question on Copying Variables

**URL:** <https://forums.unrealengine.com/t/question-on-copying-variables/1170452>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 18, 2023, 9:49pm UTC](https://forums.unrealengine.com/t/question-on-copying-variables/1170452 "2023-05-18T21:49:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tim\_Sweeney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Sweeney](https://forums.unrealengine.com/u/Tim_Sweeney)\
**Post date:** [May 20, 2023, 10:48pm UTC](https://forums.unrealengine.com/t/question-on-copying-variables/1170452/2 "2023-05-20T22:48:46Z")

</div>

Deep, stopping only at instances of classes, which are referenced.

In Verse, arrays are simple immutable values. Reading an array _variable_ gives you an immutable array, and writing an array _variable_ replaces the whole array with a new one.

In Java and C#, arrays work differently. In Java and C#, mutable arrays are objects that are passed around by reference, and comparing two arrays tells you whether they are they are the same mutable array. Whereas in Verse, comparing two arrays tells you whether they have the same length and have equal elements.

---

_[View the full topic](https://forums.unrealengine.com/t/question-on-copying-variables/1170452)._
