Package explain
Ary Borenszweig
ary at esperanto.org.ar
Thu Aug 21 17:22:22 PDT 2008
Jesse Phillips a écrit :
> On Thu, 21 Aug 2008 05:45:16 -0400, Zarathustra wrote:
>
>> Could anybody explain what "package" exctly mean?
>>
>> module package1.module1;
>> static int variable = 3;
>>
>> module package1.module2;
>>
>> module package1.module3;
>> package import package1.module1, package1.module2;
>>
>> module main;
>> import package1.module3;
>>
>> void main(){
>> variable1 = 5; // Why variable is accessable?
>> }
>>
>> |
>> |--- main
>> |--- package1
>> |
>> |--- module1
>> |--- module2
>> |--- module3
>>
>> I'm dsss user.
>
> I don't see anything in the docs about a package import. Public, Private,
> Static, but not Package.
Here goes my opinion about this again: any modifier that doesn't make
sense in a given context, should be a compiler error. This thread is and
example of what happens if this is not the case.
More information about the Digitalmars-d-learn
mailing list