Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include nullability information #65

Closed
raniejade opened this issue Jan 29, 2020 · 2 comments
Closed

Include nullability information #65

raniejade opened this issue Jan 29, 2020 · 2 comments

Comments

@raniejade
Copy link

It will be nice to have a field that denotes if the returned type of a property or method can be null. This is useful for language bindings that support nullable types (i.e Kotlin).

@aaronfranke
Copy link
Member

Ideally what we want is to let the core API provide this information. Therefore, this depends on godotengine/godot-proposals#162, since it will be easier to implement this for GDNative after it's supported in GDScript.

@aaronfranke aaronfranke added this to the 4.0 milestone Jun 28, 2020
@BastiaanOlij
Copy link
Collaborator

@raniejade I'm for closing this issue. This is not a godot-headers issue but something that needs to be supported in Godot itself first (as per proposal @aaronfranke is pointing at).

In the meanwhile I would make the assumption that all methods that return objects can return either a null pointer or null reference. It's pretty standard in the Godot core to return this in failure situations.

@akien-mga akien-mga removed this from the 4.0 milestone Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants