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.
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 coversUPtr<UHandle>is safe, or if that dereference should be handled separately.Also the implementation of the DSCheck functions (#23) may provide additional safeguards.