[Issue 17664] Deprecate implicit casting between shared and unshared
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Jul 19 07:24:10 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17664
Steven Schveighoffer <schveiguy at yahoo.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |schveiguy at yahoo.com
         Resolution|---                         |INVALID
--- Comment #1 from Steven Schveighoffer <schveiguy at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list