Re: What could this be?

2020-05-11 Thread Joel via Digitalmars-d-learn

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.


Re: What could this be?

2020-05-11 Thread Simen Kjærås via Digitalmars-d-learn

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


What could this be?

2020-05-11 Thread Joel via Digitalmars-d-learn
I'm gotten stuck with this error - "..is not visible from 
module.."