Search

May 12, 2023
Issues »
...fun()
    {
        if (true)
            return nc;
        else
            return assert(false);
    }
}
//////////////////////////////////

Compiler says:

test.d(9): Error...
May 11, 2023
Issues »
...I cannot reproduce this:

// test.d

static assert(false);
import a;

// a.d

class Dsymbol...
May 09, 2023
General »
...static assert(!isType!( 0 ));
    static assert( isType!(int));

    static assert( isType!( X[] ));
    static assert(!isType...
May 09, 2023
Issues »
...static assert(__traits(hasMember, S, "f"));
    static assert(__traits(hasMember, s, "f"));
    static assert(!__traits...
May 09, 2023
Issues »
...2, 3).test` no `return exp;` or
`assert(0);` at end of function
test.d...
May 07, 2023
Issues »
...this assert pulls in half of phobos. we need to work out an
alternative assert...
May 07, 2023
Learn »
...new C();

    int i;
    c.asIntPtr = &i;
    assert(c.result == &i);
}

> "Programming in D" for...
May 07, 2023
Learn »
...Warning Here
    package this(immutable PGresult* r)
    {
        assert(r);

        result = r;
        version(Dpq2_Dynamic) dynLoaderRefCnt...
May 07, 2023
General »
...this small code snippet:

```d
string crashingFunction() {
	assert(!__ctfe);
	return "OK";
}

template macroLikeTemplate(alias U...
May 07, 2023
General »
...ℕ^4;
    assert(rev(a)=(3,4,2,1));
    assert(rev(a,)=(a,));
    assert(rev...
79 80 81 82 83 84 85 86 87 88 89 90
Next ›   Last »