private selective imports
Vlad Levenfeld via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 6 11:19:34 PDT 2014
Is there any way to make selective imports private? I've got a
name clash from importing an "all" module that has a bunch of
public imports, one of which is circular, it goes sort of like
this:
module math.all;
public:
import geometry;
import vectors;
---
module vectors;
struct Vector {}
---
module geometry;
import math.all: Vector;
And then I get an error like: vectors.Vector conflicts with
geometry.Vector
Its the same Vector, though. What can I do?
More information about the Digitalmars-d-learn
mailing list