www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Module access to private members of synchronized classes

--089e0111bf721bb07004f6748991
Content-Type: text/plain; charset=ISO-8859-1

In the TDPL, on page 419:


"Not so for synchronized classes, which obey the following rules:
- Access to private members is restricted to methods of the class."


I can't find anything in the specs on this, so is this valid statement?

I've found a issue by Andrej here where he mentioned this (
http://forum.dlang.org/thread/bug-7903-3 https.d.puremagic.com%2Fissues%2F),
but no confirmation on these questions.

DMD is allowing this, and the fork which doesn't is here, but I'm not sure
if I should file a bug, as this is not in the specs:
https://github.com/NemanjaBoric/dmd (first push ever, don't mind me if
something is wrong there)


Thanks,
Nemanja

--089e0111bf721bb07004f6748991
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>In the TDPL, on page 419:</div><div><br></div><div><b=
r></div><div>&quot;Not so for synchronized classes, which obey the followin=
g rules:</div><div>- Access to private members is restricted to methods of =
the class.&quot;</div>
<div><br></div><div><br></div><div>I can&#39;t find anything in the specs o=
n this, so is this valid statement?</div><div><br></div><div>I&#39;ve found=
 a issue by Andrej here where he mentioned this (<a href=3D"http://forum.dl=
ang.org/thread/bug-7903-3 https.d.puremagic.com%2Fissues%2F">http://forum.d=
lang.org/thread/bug-7903-3 https.d.puremagic.com%2Fissues%2F</a>), but no c=
onfirmation on these questions.</div>
<div><br></div><div>DMD is allowing this, and the fork which doesn&#39;t is=
 here, but I&#39;m not sure if I should file a bug, as this is not in the s=
pecs: <a href=3D"https://github.com/NemanjaBoric/dmd">https://github.com/Ne=
manjaBoric/dmd</a> (first push ever, don&#39;t mind me if something is wron=
g there)</div>
<div><br></div><div><br></div><div>Thanks,</div><div>Nemanja</div></div>

--089e0111bf721bb07004f6748991--
Apr 07 2014