public imports and template functions

Don nospam at nospam.com
Wed Nov 24 00:18:44 PST 2010


Jonathan M Davis wrote:
> Am I correct in my understanding that if you wish a template function which is 
> imported from another module to compile correctly without requiring other 
> imports in the module that your using the function in that the module with the 
> template function needs to publically import all of the functions and types that 
> it needs?

That's only true of mixins. (And for that reason, you should generally 
use fully qualified names in mixins).


More information about the Digitalmars-d-learn mailing list