is private broken?
Steven Schveighoffer
schveiguy at yahoo.com
Tue Oct 10 19:33:30 UTC 2017
On 10/10/17 3:20 PM, Jonathan Marler wrote:
> On windows I was able to compile the following using both dmd.2.075.1
> and dmd.2.076.1
>
> From what I understand, you shouldn't be able to access private
> fields/methods like this...am I missing something?
Before I even read your code, I was pretty sure the error :)
private is module-based, not type based. Put your structs in a different
module, and private will work.
-Steve
More information about the Digitalmars-d
mailing list