From 3ee1c2b58cb0b6c19f6a654f87e73d5942fa0268 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Mon, 31 Oct 2022 17:08:32 +0100 Subject: [PATCH] Docs Clarify Array.fill behavior when reference type is passed in --- doc/classes/Array.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 26d51471e..6ace7f030 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -198,6 +198,7 @@ array.resize(10) array.fill(0) # Initialize the 10 elements to 0. [/codeblock] + [b]Note:[/b] If [code]value[/code] is of a reference type ([Object]-derived, [Array], [Dictionary], etc.) then the array is filled with the references to the same object, i.e. no duplicates are created.