Import all?
JS
js.mdnq at gmail.com
Wed Jul 17 03:04:48 PDT 2013
On Wednesday, 17 July 2013 at 09:57:04 UTC, monarch_dodra wrote:
> On Wednesday, 17 July 2013 at 09:34:58 UTC, JS wrote:
>> Is is possible to import all modules using something import
>> a.b.*;?
>>
>> I'd like to partition some modules up into smaller pieces to
>> simplify modification(reduce scrolling) but, of course, this
>> increases the number of imports drastically.
>
> I *think* that if you use a boost like scheme, you can do it.
> I'd look like this:
>
> +
> + a.d
> + a //Dir
> +-+ b.d
> + c.d
>
> Where a.d contains:
> //----
> public import a.b, a.c;
> //----
>
> It requries a bit of maintenance though.
> It work for me, although I think there are open bugs about this
> in regards to conflicting modules/packages.
>
> For example, testing this, it works with dmd, but it fails for
> me with rdmd...
so you are saying that by using public import it will make all
imports of imports available?
e.g.,
a.d
public import a.b, a.c;
test.d
import a; // will also import a.b and a.c?
More information about the Digitalmars-d-learn
mailing list