-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
area:manualIssues and PRs related to the Manual/Tutorials section of the documentationIssues and PRs related to the Manual/Tutorials section of the documentationbugtopic:gdscript
Description
Your Godot version:
latest - 4.0.dev (dcd2364da)
Issue description:
In Built-in types section, it says:
(Packed arrays such as PackedByteArray are still passed as values.)
However, the current & (as far as I know) expected behavior is that they pass by reference in almost all cases.
It might be the case that they pass by value when provided as an argument to non-gdscript functions only: godotengine/godot#36492 (comment)
URL to the documentation page:
https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#built-in-types
dreadpon
Metadata
Metadata
Assignees
Labels
area:manualIssues and PRs related to the Manual/Tutorials section of the documentationIssues and PRs related to the Manual/Tutorials section of the documentationbugtopic:gdscript