June 23, 2021 General » Re: Metaprogramming without templates | |||
|---|---|---|---|
| |||
...arr_node).type;
static assert(
arr_type.kind...arr_type.dim == 2
);
pragma(msg, arr_node... | |||
June 02, 2021 Issues » [Issue 21989] New: [REF 2.096] Double destruction of classes since `-preview=dtorfields` became the default | |||
|---|---|---|---|
| |||
...com
```D
import std;
pragma(msg, __VERSION__);
class...y = y; };
this(this) { assert(x == 42); }
~this... | |||
May 16, 2021 Issues » [Issue 21925] New: attribute inference not done on first `typeof` on member function | |||
|---|---|---|---|
| |||
...as below. */ pragma(msg, T2); /* Prints "void function() pure nothrow @nogc @safe". */ static assert(is... | |||
May 15, 2021 Issues » [Issue 21912] Invalid stack closure when calling delegate inside lambda | |||
|---|---|---|---|
| |||
...void main() {
pragma(msg, typeof(bla)); // @safe int delegate() @safe(int i)
assert(bla(5... | |||
May 14, 2021 General » Enhancements can enable memory-safe reference counting | |||
|---|---|---|---|
| |||
...is null)]; }
} else {
static assert(is(Address == class...compiles, a = up.address)) {
pragma(msg, "a: ACCEPTS... | |||
May 13, 2021 Learn » Re: String "dequote" in phobos? | |||
|---|---|---|---|
| |||
...sit amet`);
assert(`"Lorem \"`.unquoted == `"Lorem \"`);
assert("\"Lorem \\\"".unquoted == "\"Lorem \\\"");
assert(`"\"`.unquoted == `"\"`);
}
pragma(inline, true... | |||
May 13, 2021 Learn » Issue with small floating point numbers | |||
|---|---|---|---|
| |||
...2D array (Vector)
Example:
*/
pragma(inline, true)
Point2...10.0], PI_2);
assert(p == [-10.0... | |||
May 06, 2021 Issues » [Issue 21896] New: static if test fails after alias assignment | |||
|---|---|---|---|
| |||
...U))
{
pragma(msg, "assigning");
Fails = U;
}
}
static assert(is(Works!(const int) == int));
static assert... | |||
May 03, 2021 General » Re: Target typed new expressions for D? | |||
|---|---|---|---|
| |||
...2: 3, 0: 1 ];
assert(xs == [1, 0...void f(T)(T[]) { pragma(msg, T); }
f... | |||
April 29, 2021 Learn » Re: What's a good approach to DRY with the block code of a case-statement? | |||
|---|---|---|---|
| |||
...can access locals
pragma(inline, true)
string getDRYstr(T, parameters...)() {
static assert(__ctfe);
string mixedinstr... | |||
Copyright © 1999-2021 by the D Language Foundation