Review of std.signal

Jacob Carlborg doob at me.com
Sun Nov 10 02:37:40 PST 2013


On 2013-11-09 23:50, Robert wrote:
1
> Nice. But you trade it for protection having a default value, making the
> syntax more verbose in the general case.

You can overload it:

template signal (string name, Args...)

> So you can have a different protection for the full signal
> implementation and for the restricted part.

Ok, I see.

> Well the function is executed at compile time, but protection is still a
> "runtime" argument (so to speak) so I guess the answer is no.

Right.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list