OK, so the standard collections (Array, Set, Dictionary) are value types with 
remote storage. Since they don’t have de-initializers, how would any reference 
count get any notification to eventually de-allocate ? Or is the memory leaked? 
Or is some sort of secret system-provided de-initalizer added?

Just thinking of a undiscriminated union idea and wondering how to prevent this 
kind of leak. 

Sent from my iPhone
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to