Skip to content

[DRAFT] Make memnew(RefCounted) return Ref<T> for improved ownership safety#1973

Draft
dsnopek wants to merge 2 commits intogodotengine:masterfrom
dsnopek:memnew-refcounted
Draft

[DRAFT] Make memnew(RefCounted) return Ref<T> for improved ownership safety#1973
dsnopek wants to merge 2 commits intogodotengine:masterfrom
dsnopek:memnew-refcounted

Conversation

@dsnopek
Copy link
Copy Markdown
Collaborator

@dsnopek dsnopek commented Apr 21, 2026

This attempts to implement support for godotengine/godot#118214

It depends on #1972

Currently marked as DRAFT because of the PR dependency, but also this needs more testing, and ideally, a few new unit tests

@dsnopek dsnopek added this to the 10.x milestone Apr 21, 2026
@dsnopek dsnopek requested a review from Ivorforce April 21, 2026 14:43
@dsnopek dsnopek requested a review from a team as a code owner April 21, 2026 14:43
@dsnopek dsnopek added the enhancement This is an enhancement on the current functionality label Apr 21, 2026
@dsnopek dsnopek force-pushed the memnew-refcounted branch from efd701f to 4c3c568 Compare April 21, 2026 14:58
@dsnopek dsnopek marked this pull request as draft April 21, 2026 19:31
@dsnopek dsnopek changed the title Make memnew(RefCounted) return Ref<T> for improved ownership safety [DRAFT] Make memnew(RefCounted) return Ref<T> for improved ownership safety Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an enhancement on the current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant