B
Bob Clegg
Hi,
I have a Data Class that declares a Public struct.
It accepts instances of this struct in some of its function calls.
I now want to put an interface between this class and the calling classes.
I would like to move the struct out to the module that is housing the
interface.
But when I do this I get a scoping problem.
The interface declaration of any function that is passing one of these
structs complains that it can't expose a friend type publicly.
I have tried putting the struct into the interface and I have also tried a
public declaration in the module proper and another module.
The only thing that seems to work but doesn't sit comfortably with me is to
declare it public in one of the calling classes.
Any thoughts?
thanks
Bob
I have a Data Class that declares a Public struct.
It accepts instances of this struct in some of its function calls.
I now want to put an interface between this class and the calling classes.
I would like to move the struct out to the module that is housing the
interface.
But when I do this I get a scoping problem.
The interface declaration of any function that is passing one of these
structs complains that it can't expose a friend type publicly.
I have tried putting the struct into the interface and I have also tried a
public declaration in the module proper and another module.
The only thing that seems to work but doesn't sit comfortably with me is to
declare it public in one of the calling classes.
Any thoughts?
thanks
Bob