Skip to content

4.0 Packed*Array pass by reference #5511

@cdemirer

Description

@cdemirer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:manualIssues and PRs related to the Manual/Tutorials section of the documentationbugtopic:gdscript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions