Synchronized classes have no public members
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 15 09:02:50 PDT 2015
On 10/15/15 6:20 PM, Steven Schveighoffer wrote:
> On 10/13/15 2:58 AM, Andrei Alexandrescu wrote:
>> https://github.com/D-Programming-Language/dmd/pull/5188 implements a
>> rule defined in TDPL: synchronized classes shall have no public members.
>
> When I first read this, I thought "how the hell will you use this thing
> then?"
>
> Then after reading through most of this thread, I realize you mean
> public *field* members. Public *method* members are allowed, right?
>
> -Steve
Right, sorry for the confusion. -- Andrei
More information about the Digitalmars-d
mailing list