BinaryHeap is a range so it goes in std.range. Agree?

Walter Bright newshound1 at digitalmars.com
Wed Jun 9 13:18:29 PDT 2010


Andrei Alexandrescu wrote:
> I wanted to do that but with the singular:
> 
> public import std.container.binaryheap;
> 
> So if someone imports std.container then they get them all, if someone 
> imports std.container.something then they only get something.
> 
> Having a module and a package with the same name does not currently 
> work, and I don't think there's a good rationale for that limitation.

Because then it's overloading a name based on the contents of that name.


More information about the Digitalmars-d mailing list