I know of Voldemort types and '@disable this', but for now I'm just trying to use 'private'. Halas, it seems it can be circumvented:
********* module A; private struct Hidden {} Hidden foo() { return Hidden();} ********* module B; import A; void main() { typeof(foo()) h; } ********* Am I misunderstanding something or is that a bug?