FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

module import with wildcard

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
Mandeep



Joined: 12 Nov 2010
Posts: 1

PostPosted: Fri Nov 12, 2010 6:03 am    Post subject: module import with wildcard Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sat Nov 13, 2010 4:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group