Review of std.signal

John Colvin john.loughran.colvin at gmail.com
Thu Nov 14 13:48:15 PST 2013


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.


More information about the Digitalmars-d mailing list