View previous topic :: View next topic |
Author |
Message |
Mandeep
Joined: 12 Nov 2010 Posts: 1
|
Posted: Fri Nov 12, 2010 6:03 am Post subject: module import with wildcard |
|
|
I am new to D. I wanted to know if D supports import of modules with *. can i do
import std.xyz.*;
The basic reason is that i do not want to write all my classes in a single file. So can i import a package/directory?
Regards
Mandeep |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sat Nov 13, 2010 4:51 am Post subject: |
|
|
Kind of yes. You would have to create an additional module called "all", "_" or something similar which public imports all the modules in the package and the import this new module. |
|
Back to top |
|
|
|