On Tuesday, 23 August 2016 at 21:14:01 UTC, ciechowoj wrote:
This is a bit strange, as the local variables aren't known
either and they seem to work. I do not want to get the address,
rather an alias to `&variable` expression.
D doesn't accept aliases to expressions, only symbols and
literals.
Spec: https://dlang.org/spec/template.html#TemplateAliasParameter
Alias parameters enable templates to be parameterized with
almost any kind of D symbol, including user-defined type names,
global names, local names, module names, template names, and
template instance names. Literals can also be used as arguments
to alias parameters.