Difference between using `import` with/without the colon

Jeremy jtbx at disroot.org
Sun Mar 19 07:20:17 UTC 2023


Hello, is there any difference at all between the following 
lines, as an example:

```d
import std.regex;
import std.regex : matchFirst;
```

What technical differences does it make (except for having the 
identifier available), using the colon?
Does it make any speed/optimization changes or am I better off 
just importing the whole module?


More information about the Digitalmars-d-learn mailing list