> "Mike Parker" <[email protected]> wrote in message
> news:[email protected]...
> 
> > On 5/16/2011 12:06 PM, Andrei Alexandrescu wrote:
> >> On 05/15/2011 10:04 PM, Daniel Gibson wrote:
> >>> So you have to write
> >>> std.parallel_algorithm.map() instead of map() all the time?
> >> 
> >> alias std.parallel_algorithm p;
> >> 
> >> 
> >> Andrei
> > 
> > Or this, which I prefer to alias:
> > 
> > import p = std.parallel_algorithm;
> 
> What would be the difference between...
> 
> alias std.parallel_algorithm p;
> 
> ...and...
> 
> import p = std.parallel_algorithm;
> 
> ..?

Without private on the alias, it'll affect any module which imports the module 
that you created the alias on, and thanks to 
http://d.puremagic.com/issues/show_bug.cgi?id=6013 it'll happen anyway. I 
would also expect that using std.parallel_algorithm.func would still work with 
the alias whereas it wouldn't with the import p.

- Jonathan M Davis

Reply via email to