Thread.sleep( dur!("msecs")( 50 ) ); // sleep for 50 milliseconds

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 30 12:26:11 PST 2015


On 1/30/15 12:49 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
> On Friday, January 30, 2015 12:30:35 FG via Digitalmars-d-learn wrote:
>> On 2015-01-30 at 12:08, Vladimir Panteleev wrote:
>>> On Friday, 30 January 2015 at 11:04:47 UTC, FG wrote:
>>>> Bug or correct behaviour?
>>>
>>> Bug: https://issues.dlang.org/show_bug.cgi?id=1238
>>
>> https://github.com/D-Programming-Language/dmd/pull/3743
>>
>> The fix is pretty much a one-liner.
>> Probably 2.067 will already include it, right?
>
> Last I heard, no one had been able to convince Walter that private symbols
> should be hidden. They aren't in C++, but C++ doesn't have access levels for
> anything other than classes, so the effect is _very_ different.

Another HUGE difference is that C++ generally splits API from 
implementation. When you import .h files, you don't also import private 
symbols which may be defined or used in the .cpp file.

D absolutely needs a way to say "this is ONLY for implementation, it's 
not part of the API." private fits this bill EXACTLY.

Please do it.

-Steve


More information about the Digitalmars-d-learn mailing list