Search

March 28, 2023
Issues »
...safe foo(scope int[] stuff) @safe {
        return () {
                assert(stuff == [1,2,3]);
                foreach(item; stuff...
March 27, 2023
Issues »
...scope, so the expectation that the static assert is evaluated before the enum declaration is...
March 24, 2023
Learn »
...Tarih.AY;
  date.month.write("/");

  assert(date["month"] != Tarih.AY);
  assert(date["month"].type == typeid...
March 24, 2023
General »
...V))
            alias opResolveAlias = Vec3!V;
        else
            static assert(0);
    }
}
```

The `Vec3` function has another template...
March 23, 2023
Learn »
...return convto!T(value) + rhs;
            else
                static assert(0);
        }

        alias opBinary this;
    }

    void main()
    {

    auto...
March 22, 2023
Issues »
...The workaround is to change the assert to `assert((T(1) == T(1)) == true);` But...
March 21, 2023
General »
...void main() {
    alias five = identity!5;
    static assert(is(five == identity!y, int y) && y...
March 21, 2023
General »
...is not a type. So the static assert above would be false even if the...
March 21, 2023
General »
...void foo() {
    enum five = identity!5;
    static assert(is(five == identity!y, int y) && y...
March 21, 2023
General »
...void foo() {
    enum five = identity!5;
    static assert(is(five == identity!y, int y) && y...
90 91 92 93 94 95 96 97 98 99 100 101
Next ›   Last »