Review of std.signal

Dicebot public at dicebot.lv
Thu Nov 14 13:54:22 PST 2013


On Thursday, 14 November 2013 at 21:48:16 UTC, John Colvin wrote:
> On Thursday, 14 November 2013 at 21:13:24 UTC, Robert wrote:
>>> enum Protection { protected_, private_, none }
>>> alias protected_ = Protection.protected_;
>>> alias private_ = Protection.private_;
>>> alias none = Protection.none;
>>>
>>> Best of both worlds?
>>
>> I thought of this too and it does seem to be a viable 
>> solution. I personally really don't mind the string parameter, 
>> after all it is a string mixin and it has a default value. But 
>> I have to admit, seeing it right in front of me, you got me 
>> there, I might like it.
>
> The only argument against it is namespace pollution.

There is no such problem in D.


More information about the Digitalmars-d mailing list