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
Non frozen structs and generic types are projected as classes. We need to manualy release all the resources in the dispose method. We need to learn what needs disposing and genearte an appropriate Dispose method.
By projecting non-frozen types and generics as classes, we allow them to have destructors. The problem is that without knowing their memory layout, we don’t know what needs to be released in the destructor.
jkurdek
changed the title
Update projection tooling to generate canonical Dispose
[Swift Language Features] Generate correct Dispose for non-frozen structs and generic types
Feb 10, 2025
Non frozen structs and generic types are projected as classes. We need to manualy release all the resources in the dispose method. We need to learn what needs disposing and genearte an appropriate Dispose method.
Originally posted by @kotlarmilos in #2970
The text was updated successfully, but these errors were encountered: