September 07, 2020 Duyuru » Sohbet: 6 Eylül 2020, 10:00 (Türkiye saati) | |||
|---|---|---|---|
| |||
...main() {
pragma(msg, typeof("ba"));
pragma(msg, typeof(chain(['a', 'b'], only('c'))));
assert(endsWith... | |||
August 27, 2020 Issues » [Issue 17870] Can't alias a mix of parent and child class members | |||
|---|---|---|---|
| |||
...TupleOf!allClasses;
pragma(msg, allClasses);
pragma(msg, allFields...assert(&ins.tup[0] == &ins.b);
static assert... | |||
August 25, 2020 General » Re: shared and getParameterStorageClasses bug? | |||
|---|---|---|---|
| |||
...Object); static assert(is(typeof(©) == typeof(&expected))); The generated mixin is: pragma(msg, edited... | |||
August 24, 2020 Learn » Re: How to get the element type of an array? | |||
|---|---|---|---|
| |||
...or static assert(0) if it should be an error } int[] myArr; pragma(msg, ArrayElemType... | |||
August 19, 2020 Learn » Re: Which version of DMD does GDC 10 target | |||
|---|---|---|---|
| |||
...to find out: ----- static assert(0, "Compiler language...asserts instead of using pragma(msg) so that... | |||
August 02, 2020 Learn » Re: 2-D array initialization | |||
|---|---|---|---|
| |||
...compile time with pragma(msg): pragma(msg, "the...a 2D array static assert (is (typeof(c... | |||
July 31, 2020 Learn » Re: dlib 0.19.1 seems to be failing linking with ldc2 | |||
|---|---|---|---|
| |||
...function.
```
pragma(mangle, "_D4core8internal7switch___T14__switch_errorZQrFNaNbNiNfAyamZv")
void switchError(string file, ulong line) {
assert(0... | |||
July 21, 2020 Issues » [Issue 21063] New: getLinkage is wrong for forward reference extern(C++) class | |||
|---|---|---|---|
| |||
...dlang@vild.io ``` static assert(__traits(getLinkage, Klass) == "C++"); // Succeeds pragma(msg, __traits(getLinkage, Klass... | |||
July 11, 2020 Learn » Re: how to assign to shared obj.systime? | |||
|---|---|---|---|
| |||
...else {
static assert(0, "Only classes, interfaces and structs can be unshared");
}
}
pragma(inline, true... | |||
July 08, 2020 Learn » Re: How to ensure template function can be processed during compile time | |||
|---|---|---|---|
| |||
...enum size = mySize!v; pragma(msg, size); // 46LU...to use typeof: static assert(mySize!(typeof(v... | |||
Copyright © 1999-2021 by the D Language Foundation