www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What could this be?

reply Joel <joelcnz gmail.com> writes:
I'm gotten stuck with this error - "..is not visible from 
module.."
May 11 2020
parent reply Simen =?UTF-8?B?S2rDpnLDpXM=?= <simen.kjaras gmail.com> writes:
On Monday, 11 May 2020 at 11:20:51 UTC, Joel wrote:
 I'm gotten stuck with this error - "..is not visible from 
 module.."
Without some code it's hard to say exactly, but this generally means you're referencing a private symbol in a different module: module foo; private struct S {} module bar; import foo; foo.S s; // foo.S is not visible from module bar -- Simen
May 11 2020
parent Joel <joelcnz gmail.com> writes:
On Monday, 11 May 2020 at 11:37:40 UTC, Simen Kjærås wrote:
 On Monday, 11 May 2020 at 11:20:51 UTC, Joel wrote:
 I'm gotten stuck with this error - "..is not visible from 
 module.."
Without some code it's hard to say exactly, but this generally means you're referencing a private symbol in a different module: module foo; private struct S {} module bar; import foo; foo.S s; // foo.S is not visible from module bar -- Simen
Thanks Simen.
May 11 2020