You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for this is that we necessarily need to have these methods return a *mut c_void otherwise it's impossible to cast a fat pointer (like dyn IParamValueQueue) to a thin pointer. By introducing these type aliases we keep the semantics of the method intact (so we know what type is returned by reading the alias name). An alternative can be to use docs, but I feel like this approach is more immediate and requires less noisy information.
The text was updated successfully, but these errors were encountered:
This has been taken care of with the pointer changes from #45. Every pointer argument or return value can now be upgraded to a smart pointer type with the correct semantics.
My proposal is to add type aliasing for
*mut c_void
in the context of interface methods.Example:
The reason for this is that we necessarily need to have these methods return a
*mut c_void
otherwise it's impossible to cast a fat pointer (likedyn IParamValueQueue
) to a thin pointer. By introducing these type aliases we keep the semantics of the method intact (so we know what type is returned by reading the alias name). An alternative can be to use docs, but I feel like this approach is more immediate and requires less noisy information.The text was updated successfully, but these errors were encountered: