Sharing in D

Walter Bright newshound1 at digitalmars.com
Fri Aug 1 10:05:12 PDT 2008


Steven Schveighoffer wrote:
> I have a feeling that the shared/unshared comes with a requriement for 
> 'shared' functions.  That is, in order to call a function on an object that 
> is 'shared', you have to call a function where the 'this' pointer is shared:

That's right. Shared objects can only call shared or synchronized methods.



More information about the Digitalmars-d mailing list