On 07/29/2015 10:48 AM, vladde wrote:

>          static if(is(typeof(c) == dchar) || is(typeof(c) == char))
>          {
>              slots[xy.y][xy.x].character = c;
>          }
>          else if(is(typeof(c) == fg))

I don't know whether it is the reason here but you fell for one of the D traps. :( Most definitely, you want an 'else static if' there.

Otherwise, for the fg case, what ends up in your code to be compiled is this:

  if(is(typeof(c) == fg))

Ali

Reply via email to