Search

September 07, 2020
Duyuru »
...main() {
 pragma(msg, typeof("ba"));
 pragma(msg, typeof(chain(['a', 'b'], only('c'))));

 assert(endsWith...
August 27, 2020
Issues »
...TupleOf!allClasses;
    pragma(msg, allClasses);
    pragma(msg, allFields...assert(&ins.tup[0] == &ins.b);
    static assert...
August 25, 2020
General »
...Object);
static assert(is(typeof(&copy) == typeof(&expected)));

The generated mixin is:

pragma(msg, edited...
August 24, 2020
Learn »
...or static assert(0) if it should be an error
	}

	int[] myArr;
	pragma(msg, ArrayElemType...
August 19, 2020
Learn »
...to find out:

-----
static assert(0, "Compiler language...asserts instead of using pragma(msg) so that...
August 02, 2020
Learn »
...compile time with pragma(msg):

  pragma(msg, "the...a 2D array
  static assert (is (typeof(c...
July 31, 2020
Learn »
...function.

```
pragma(mangle, "_D4core8internal7switch___T14__switch_errorZQrFNaNbNiNfAyamZv")
void switchError(string file, ulong line) {
    assert(0...
July 21, 2020
Issues »
...dlang@vild.io

```
static assert(__traits(getLinkage, Klass) == "C++"); // Succeeds
pragma(msg, __traits(getLinkage, Klass...
July 11, 2020
Learn »
...else {
        static assert(0, "Only classes, interfaces and structs can be unshared");
    }
}


pragma(inline, true...
July 08, 2020
Learn »
...enum size = mySize!v;

pragma(msg, size); // 46LU...to use typeof:

static assert(mySize!(typeof(v...
9 10 11 12 13 14 15 16 17 18 19 20
Next ›   Last »