Skip to content

Some operators are not generated correctly #1556

Closed

Description

@mihe

Godot version

4.3.stable

godot-cpp version

4.4.dev [8b80d91]

System information

Windows 11 (10.0.22631)

Issue description

If you look at the generated headers for classes like String, StringName, PackedStringArray, Signal, etc., you'll find this:

bool operatornot() const;

Which I'm assuming should be translated into bool operator!() const in the bindings generator.

And indeed, if you try using the unary !-operator on a String, like you can in GDScript, you will (for obvious reasons) get an error saying it doesn't exist.

Steps to reproduce

N/A

Minimal reproduction project

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions