[Feature Request] Single name access when module name and content are same

tcak via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 25 09:16:34 PST 2015


On Friday, 25 December 2015 at 17:08:04 UTC, default0 wrote:
> On Friday, 25 December 2015 at 15:46:23 UTC, tcak wrote:
>> On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote:
>>> I only want to discuss an idea here. I am hoping see some 
>>> nice pros and cons from people.
>>>
>>> [...]
>>
>> My mistake at the end. It should be:
>>
>> my.big.lib.createFile("FSociety.dat");
>
> https://dlang.org/spec/module.html check the section on "Static 
> Imports" does this do what you want?

You misunderstood what I propose, please reread it again. One 
example how the current problem is:

https://dlang.org/phobos/std_digest_digest.html

std.digest.digest.digest!MD5("The quick brown fox jumps over the 
lazy dog");

See those 3 digest one after another. Haven't seen anything like 
this in neither C# nor Java nor Delphi.


More information about the Digitalmars-d mailing list