Sharing in D

Steven Schveighoffer schveiguy at yahoo.com
Thu Aug 7 19:43:40 PDT 2008


"Russell Lewis" wrote
> Walter Bright wrote:
>> Shared cannot be implicitly cast to unshared. Just like const cannot be 
>> implicitly cast to mutable.
>
> But you can implicitly cast unshared to shared, right?

No.  There is no implicit casting or else you can have data that is shared 
and unshared at the same time.  It will be up to the coder to ensure only 
one is happening at a time.

-Steve 





More information about the Digitalmars-d mailing list