www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - import foo vs. private import foo

reply jicman <cabrera__ __wrc.xerox.com> writes:
Greetings!

A few months ago, there was a discussion in the newsgroup about
making all imports private.  Meaning that,

import foo;

would be treated by the compiler as,

private import foo;

Am I way off base?

thanks,

jic
Jan 09 2007
next sibling parent reply Brad Roberts <braddr puremagic.com> writes:
jicman wrote:
 Greetings!
 
 A few months ago, there was a discussion in the newsgroup about
 making all imports private.  Meaning that,
 
 import foo;
 
 would be treated by the compiler as,
 
 private import foo;
 
 Am I way off base?
 
 thanks,
 
 jic

The change logs make for a good starting point to answer this sort of question: http://www.digitalmars.com/d/changelog.html#new0163 Later, Brad
Jan 09 2007
parent Hasan Aljudy <hasan.aljudy gmail.com> writes:
Brad Roberts wrote:
 jicman wrote:
 Greetings!

 A few months ago, there was a discussion in the newsgroup about
 making all imports private.  Meaning that,

 import foo;

 would be treated by the compiler as,

 private import foo;

 Am I way off base?

 thanks,

 jic

The change logs make for a good starting point to answer this sort of question: http://www.digitalmars.com/d/changelog.html#new0163 Later, Brad

I think it would've been easier to just answer the question, and *then* posting the link?
Jan 09 2007
prev sibling parent Hasan Aljudy <hasan.aljudy gmail.com> writes:
jicman wrote:
 Greetings!
 
 A few months ago, there was a discussion in the newsgroup about
 making all imports private.  Meaning that,
 
 import foo;
 
 would be treated by the compiler as,
 
 private import foo;
 
 Am I way off base?
 
 thanks,
 
 jic

The suggestion was accepted, imports are now private by default.
Jan 09 2007