DMD 1.037 and 2.020 releases
Derek Parnell
derek at psych.ward
Tue Nov 25 14:40:47 PST 2008
On Tue, 25 Nov 2008 14:22:47 -0800, Walter Bright wrote:
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.037.zip
>
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.021.zip
It would appear that Bugzilla 313 () is not really fixed yet.
// --- file: sub.d ---
module sub;
private int iPrivate = 12;
public int iPublic = 13;
---------------------------------
// --- file: test.d ---
import sub;
void main()
{
int i;
int j;
i = sub.iPrivate;
j = sub.iPublic;
}
--------------------
C:>dmd test sub
RESULTS: Successfully compiled
** which is not what I expected as sub.iPrivate is private.
// --- file: test1.d ---
import sub;
void main()
{
int i;
int j;
i = iPrivate;
j = iPublic;
}
--------------------
C:>dmd test1 sub
RESULTS: test1.d: module test1 sub.iPrivate is private
** which is as I expected.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d-announce
mailing list