Skip to content

Conversation

@Bromeon
Copy link
Member

@Bromeon Bromeon commented May 25, 2025

Small follow-up to #1171.

Accepting Gd<T> by value is the more natural signature, and the only one compatible with #[func] methods. Would otherwise need separate functions. The occurring clone() is a pointer copy for manually-managed objects, which make up majority of signal usage.

Accepting Gd<T> by value is the more natural signature, and the only one compatible
with #[func] methods. Would otherwise need separate functions. The occurring clone()
is a pointer copy for manually-managed objects, which make up majority of signal usage.
@Bromeon Bromeon added quality-of-life No new functionality, but improves ergonomics/internals c: register Register classes, functions and other symbols to GDScript labels May 25, 2025
@Bromeon Bromeon added this to the 0.3 milestone May 25, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1175

@Bromeon Bromeon added this pull request to the merge queue May 26, 2025
Merged via the queue into master with commit 98dcdda May 26, 2025
17 checks passed
@Bromeon Bromeon deleted the qol/connect-gd-by-value branch May 26, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: register Register classes, functions and other symbols to GDScript quality-of-life No new functionality, but improves ergonomics/internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants