Review of std.signal

Robert jfanatiker at gmx.at
Thu Nov 14 13:13:22 PST 2013


> 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.


More information about the Digitalmars-d mailing list