Release D 2.071.0

Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Apr 6 11:18:10 PDT 2016


On 2016-04-06 19:15, Kagamin wrote:
> On Wednesday, 6 April 2016 at 13:05:31 UTC, sigod wrote:
>>     module test;
>>
>>     struct S {
>>         package int field;
>>     }
>>
>>     void main() {
>>         S s;
>>         s.field = 1; // Deprecation: test.S.field is not visible from
>> module test
>>     }
>
> You need the module to be contained in a package. It's pretty old, AFAIK.

It's all in the same module, I don't see how a protection attribute can 
affect anything.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list