On 9/14/13, "Nordlöw" <[email protected]> wrote:
> In the post
>
> http://forum.dlang.org/thread/[email protected]/issues/
>
> I tried to compile
>
> template isValidBinaryOp(T1, string op, T2) {
>     alias isValidBinaryOp = is(mixin("T1.init" ~ op ~ "T2.init") :
> bool);
> }
>
> What is wrong?

Use "enum isValidBinaryOp = is..".

Aliases are used to create symbols which refer to other symbols but
not to values.

Reply via email to