DMD 1.037 and 2.020 releases

Derek Parnell derek at psych.ward
Tue Nov 25 18:15:49 PST 2008


On Wed, 26 Nov 2008 10:51:49 +0900, Bill Baxter wrote:

> On Wed, Nov 26, 2008 at 7:40 AM, Derek Parnell <derek at psych.ward> wrote:
>> 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;
>> ---------------------------------
>>
> 
> Maybe the problem is just with package-less top-level modules?

Just tested that too, and it still fails to do what I expected it to do.

// --- file: foo/sub.d
module foo.sub;
private int iPrivate = 12;

public  int iPublic = 13;

package int iPackage = 14;
//------------------------------//

// --- file: test.d
module test;
import foo.sub;
void main()
{
        int i;
        int j;
        int k;
        
        i = foo.sub.iPrivate;
        j = foo.sub.iPublic;
        k = foo.sub.iPackage;
}
//------------------------------//

// --- file: test1.d
module test;
import foo.sub;
void main()
{
        int i;
        int j;
        int k;
        
        i = iPrivate;
        j = iPublic;
        k = iPackage;
}
//------------------------------//



C:\temp>dmd test foo/sub

C:\temp>dmd test1 foo/sub
test1.d: module test foo.sub.iPrivate is private

C:\temp>dmd
Digital Mars D Compiler v2.021
Copyright (c) 1999-2008 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/2.0/index.html



-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell


More information about the Digitalmars-d-announce mailing list