import except one?

Puming via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 26 00:46:44 PDT 2014


Hi,

I'm using scriptlike, which imports everything from std.process 
for convienience, but I also need to import another module, which 
contains a class `Config`, it conflicts with std.process.Config. 
I don't actually need std.process.Config, but I need many other 
symbols in scriptlike and std.process.

What I want to achieve is to import ALL symbols from scriptlike 
EXCEPT std.process.Config, something like:

```d
import scriptlike: !Config;
```

or rename it AND import all other symbols, to resolve the 
confliction.

```d
import scriptlike: *, Cfg = Config;
```

I don't know how to achieve these effects, selective import and 
rename seems to only import the one I specified.


More information about the Digitalmars-d-learn mailing list