Search

April 03, 2023
General »
...v.data.writeln;
  }

  singleMatrix!T(cube); // ok
  assert(is(typeof(cube) == Vec3!T));

  // ...

  alias...
April 03, 2023
General »
...Vec3!U v){}

  singleMatrix!T(cube); // ok
  assert(is(typeof(cube) == Vec3!T));

  // ...

  alias...
April 03, 2023
General »
...SomeOtherAlias!(Q, P) v)
{
    static assert(is(P == int));
    static assert(is(Q == float));
}

void...
April 02, 2023
Genel »
...kaşık");
  print("A","B", "C", "D", sep = " < ");
  assert(sep == ", ");
} /* ÇIKTISI:
ayva-elma
bıçak, çatal, kaşık...
April 02, 2023
General »
...often ends with a default case with assert(false) or similar.  Or it should -- so...
April 02, 2023
General »
...default: assert(0);` does.
>
> Yup. I like that - much better default.
> Except for assert(0...
April 02, 2023
General »
...like that - much better default.
Except for assert(0) not providing any message. So if...
April 02, 2023
General »
`dafault: assert(0);` does.
April 01, 2023
Issues »
...assembler code - it replaces it with an assert(0).

DMD's inline assembler is derived...
April 01, 2023
General »
...the default case, often I want to `assert(0)` instead. This idea would encourage not...
87 88 89 90 91 92 93 94 95 96 97 98
Next ›   Last »