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

UHandle from Uptr #24

Open
jkneer opened this issue Jul 8, 2024 · 1 comment
Open

UHandle from Uptr #24

jkneer opened this issue Jul 8, 2024 · 1 comment

Comments

@jkneer
Copy link
Contributor

jkneer commented Jul 8, 2024

For pointers that are known to point to a Handle, the handle can be recovered using DSRecoverHandle. Having this special case covered by the memory manager makes me wonder if the general Deref implementation UPtr<T> that also covers UPtr<UHandle> is safe, or if that dereference should be handled separately.

Also the implementation of the DSCheck functions (#23) may provide additional safeguards.

@JamesMc86
Copy link
Contributor

Lets keep this here for now but unless there is a specific use case for UPtr my intention was to not implement much of it as it is recommended to use handles instead and the call library node implements everything with handles and not pointers.

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

No branches or pull requests

2 participants