Synchronized classes have no public members
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 15 08:20:25 PDT 2015
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
More information about the Digitalmars-d
mailing list