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

Core: Implement Nullable<T> template #90767

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Apr 16, 2024

Preliminary work for handling value-types as nullable in a manner that can be recognized more explicitly than Variant. The bindable versions of the aabb/plane functions had their return value changed from Variant to Nullable<Vector3> to demonstrate this capability without breaking compatability (bindings see Nullable as Variant atm).

Doesn't attempt to overhaul current bindings nor the type system; this is strictly for introducing this concept at its most basic level. The only exception is letting Nullable get bound in the same way as Variant, albeit specialized to its return type; that is, any bound Variant return type that represents specifically T and null can be 1-1 replaced with Nullable<T>.

@AThousandShips
Copy link
Member

See also:

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

Successfully merging this pull request may close these issues.

None yet

2 participants