import issue?

DLearner bmqazwsx123 at gmail.com
Wed Nov 22 17:03:14 UTC 2023


On Wednesday, 22 November 2023 at 16:51:54 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> On 23/11/2023 5:34 AM, DLearner wrote:
>> Is the encapsulation issue resolved if the struct itself is 
>> held in another module, and imported from that module into 
>> both the 'main' and 'Ex_mod' files?
>
> Each module is its own encapsulation unit.
>
> As long as you are using the same distinct type in both 
> modules, the issues are resolved.
>
> Where the distinct type is defined does not matter for matching 
> of function parameters.

OK thanks.


More information about the Digitalmars-d-learn mailing list