Friends?
Jeremy DeHaan
dehaan.jeremiah at gmail.com
Thu Oct 18 20:04:43 PDT 2012
On Thursday, 18 October 2012 at 20:44:42 UTC, Jonathan M Davis
wrote:
>> Does it work? I thought it was not implemented.
>
> Hmm. I don't know what it's current state is. There _is_ a
> long-standing bug
> on it in bugzilla (
> http://d.puremagic.com/issues/show_bug.cgi?id=143 ) which
> is still open. I had forgotten about it. But the bug is that
> package doesn't
> restrict when it's supposed to as opposed to restricting when
> it's not
> supposed to, so it'll work in that you can use it correctly and
> have your code
> work, but it won't catch incorrect usage, and your code which
> uses it
> incorrectly will break once it's fixed.
>
> - Jonathan M Davis
It seems to be working for me. Things within the same package can
access those members and things outside can't. The compiler
complained when I tried.
More information about the Digitalmars-d-learn
mailing list