[Issue 15226] Public members being disabled for a synchronized class is undocumented

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 21 01:03:20 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=15226

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #4 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to monkeyworks12 from comment #2)
> Can I close this issue? I haven't checked the documentation to see if it's
> been fixed.

(In reply to Andrei Alexandrescu from comment #3)
> Haven't seen a related doc pull, so let's leave it open.

Actually, the pull request above fixed the compiler to conform to the spec (and
TDPL).

The spec has stated that public fields in synchronized classes are forbidden
for a long time (since https://github.com/dlang/dlang.org/pull/502). See
http://dlang.org/spec/class.html#synchronized-classes , which states that
"Member fields of a synchronized class cannot be public".

So, as far as I can see, no further change to the spec is needed.

--


More information about the Digitalmars-d-bugs mailing list