On Tuesday, 24 March 2015 at 16:58:48 UTC, Gary Willoughby wrote:
On Tuesday, 24 March 2015 at 15:38:04 UTC, Andre wrote:
The use case is a type tuple where you cannot use the keyword
ref.
Could template alias parameters not be used here?
http://dlang.org/template.html#aliasparameters
Event is defined as struct Event(T...){}.
That way the actual number of parameters is very flexible.
I just checked template alias parameters. Also here the ref
keyword
is not allowed:
struct Event(alias x)
{
private void delegate(x)[] _dlgArr;
}
Event!(ref bool) onEvent;
Error is thrown: expression expected not ref.
Kind regards
André