May 12, 2023 Issues » [Issue 23914] New: "auto ref" determination prevented by bottom type | |||
|---|---|---|---|
| |||
...fun()
{
if (true)
return nc;
else
return assert(false);
}
}
//////////////////////////////////
Compiler says:
test.d(9): Error... | |||
May 11, 2023 Issues » [Issue 18360] `static assert(false)` ignored / gagged | |||
|---|---|---|---|
| |||
...I cannot reproduce this: // test.d static assert(false); import a; // a.d class Dsymbol... | |||
May 09, 2023 General » Re: D needs a type expression syntax | |||
|---|---|---|---|
| |||
...static assert(!isType!( 0 ));
static assert( isType!(int));
static assert( isType!( X[] ));
static assert(!isType... | |||
May 09, 2023 Issues » [Issue 23907] __traits(child) respects visibility | |||
|---|---|---|---|
| |||
...static assert(__traits(hasMember, S, "f"));
static assert(__traits(hasMember, s, "f"));
static assert(!__traits... | |||
May 09, 2023 Issues » [Issue 18605] Missing return not detected when labeled continue is used | |||
|---|---|---|---|
| |||
...2, 3).test` no `return exp;` or `assert(0);` at end of function test.d... | |||
May 07, 2023 Issues » [Issue 23901] Spurious "Cannot move object [...] with internal pointer" | |||
|---|---|---|---|
| |||
...this assert pulls in half of phobos. we need to work out an alternative assert... | |||
May 07, 2023 Learn » Re: Proper way to handle "alias this" deprecation for classes | |||
|---|---|---|---|
| |||
...new C();
int i;
c.asIntPtr = &i;
assert(c.result == &i);
}
> "Programming in D" for... | |||
May 07, 2023 Learn » Proper way to handle "alias this" deprecation for classes | |||
|---|---|---|---|
| |||
...Warning Here
package this(immutable PGresult* r)
{
assert(r);
result = r;
version(Dpq2_Dynamic) dynLoaderRefCnt... | |||
May 07, 2023 General » Manipulating variables without evaluating them | |||
|---|---|---|---|
| |||
...this small code snippet:
```d
string crashingFunction() {
assert(!__ctfe);
return "OK";
}
template macroLikeTemplate(alias U... | |||
May 07, 2023 General » Re: D needs a type expression syntax | |||
|---|---|---|---|
| |||
...ℕ^4;
assert(rev(a)=(3,4,2,1));
assert(rev(a,)=(a,));
assert(rev... | |||
Copyright © 1999-2021 by the D Language Foundation