Skip to content

Conversation

@CedNaru
Copy link
Member

@CedNaru CedNaru commented Sep 12, 2024

We were using a pointer to the native RID for it but it's really just a simple wrapper around an uint64

I renamed coreTypesReimplementedInKotlin to localCopyCoreType because we only use it to generate the local copy helpers in the api gen and RID is not in that list. RID doesn't need those helpers because its only field can't be mutated anyway. Adding helpers for it would only bloat the code for nothing.

If you wonder why it wasn't reimplemented directly in Kotlin before. It's simply because back in Godot 3.x, RID also had a pointer to its owner. This is no longer the case, so we can get RID of the bridge.

@CedNaru CedNaru requested review from chippmann and piiertho and removed request for chippmann September 12, 2024 12:35
@CedNaru CedNaru force-pushed the improvement/kotlin-rid branch from ea4992f to cbc9d3f Compare September 12, 2024 12:35
@CedNaru CedNaru requested a review from chippmann September 12, 2024 12:35
chippmann
chippmann previously approved these changes Sep 12, 2024
@CedNaru CedNaru force-pushed the fix/signal_buffer branch 2 times, most recently from 770c971 to 0f95703 Compare September 13, 2024 11:48
Base automatically changed from fix/signal_buffer to master September 13, 2024 13:01
@CedNaru CedNaru dismissed chippmann’s stale review September 13, 2024 13:01

The base branch was changed.

@CedNaru CedNaru force-pushed the improvement/kotlin-rid branch from a2b586b to 1c21fac Compare September 13, 2024 13:09
@CedNaru CedNaru requested a review from chippmann September 13, 2024 13:10
@CedNaru CedNaru merged commit 359d785 into master Sep 14, 2024
49 checks passed
@CedNaru CedNaru deleted the improvement/kotlin-rid branch September 14, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants