digitalmars.D.bugs - [Bug 143] New: 'package' does not work at all
- d-bugmail puremagic.com (32/32) May 17 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=143
- Thomas Kuehne (14/16) May 19 2006 -----BEGIN PGP SIGNED MESSAGE-----
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 17 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- iD8DBQFEbc3k3w+/yD4P9tIRAq13AJ9+GSHvj8Kw4YpkSzBlPPYqXfO/TACfaYYf RLemX8Un1IofG+uW9OQ8ryQ= =jABO -----END PGP SIGNATURE-----
May 19 2006