https://issues.dlang.org/show_bug.cgi?id=17664
Steven Schveighoffer <schvei...@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |schvei...@yahoo.com Resolution|--- |INVALID --- Comment #1 from Steven Schveighoffer <schvei...@yahoo.com> --- This is not the purpose of shared. The purpose of shared is to prevent sharing memory, not other resources. Since a copy of the struct does not share any of the original memory, this needs to be allowed. You will need to implement this a different way to prevent sharing, D provides many tools for this. --