Search

February 12, 2023
Issues »
...a;
    _Static_assert(sizeof(a) == sizeof(short), "1");

    typeof(a) b;
    _Static_assert(sizeof(b...
February 12, 2023
Issues »
...here (not in a function)
    4 | _Static_assert(ABC == 3, "1");
      |                ^~~
compilable/cppflags.c:4...
February 12, 2023
Issues »
...var;
#1040 "cstuff3.c" 3 4
};

_Static_assert(U'\U00011234' == 0x11234, "ok"); // sppn.exe doesn...
February 12, 2023
Issues »
...whatever
enum { Ax, Bx, Cx };
#pragma

_Static_assert(Ax == 0 && Bx == 1 && Cx == 2, "in...
February 09, 2023
General »
...projects/d";
    scope string p2 = expandTilde(p1);
    assert(p1 != p2);
}
```

In this case, following error...
February 09, 2023
Learn »
...enum N = count(t.stringof, ',') + 1;
    static assert(N == 1); // FAILS
}

Same thing with any...
February 09, 2023
Learn »
...fun, args...)
{
    static assert(N != 0, "N must be non-zero.");
    static assert((args.length...
February 09, 2023
Learn »
...writer, ")");
    }
}

void main(){

        import std.format : format;
        assert( format("%s", Point!int(1,2)) == "(1...
February 09, 2023
General »
...path);
    }

}

unittest {
    assert(Path("my", "dir", "42").isInside(Path("my", "dir")) == true);
    assert(Path("my...
February 09, 2023
Genel »
...assert(is(typeof(values[0].data) == byte));
	assert(is(typeof(values[1].data) == short));
	assert...
101 102 103 104 105 106 107 108 109 110 111
Next ›   Last »