May 17, 2006 [Bug 143] New: 'package' does not work at all | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/bugzilla/show_bug.cgi?id=143 Summary: 'package' does not work at all Product: D Version: 0.156 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: jarrett.billingsley@gmail.com It doesn't work. I've tried so many things. It never prevents any kind of access. Assume the following directory structure: /proj/test.d /proj/modules/foo.d And the files: [test.d] module test; import modules.foo; void main() { writefln(x); } [foo.d] module modules.foo; package int x = 5; This happily compiles and runs, printing 5. I've tried multiple levels of directories/packages, different kinds of declarations, moving the import file somewhere else.. nothing. -- |
May 19, 2006 Re: [Bug 143] New: 'package' does not work at all | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-05-17: > It doesn't work. I've tried so many things. It never prevents any kind of access. The implementations of "private", "package" and "protected" are broken. Details can be found in the digitalmars.D.bugs group by searching for "private" or "package". Test cases: http://dstress.kuehne.cn/www/dstress.html#private_07 Thomas |
Copyright © 1999-2021 by the D Language Foundation