Search

May 18, 2023
Issues »
...without warning

```
alias NR = typeof(assert(0));

NR test(){assert(0);}

void main()
{
    if (test...
May 18, 2023
Issues »
...t compile
        }

        int x = 1;
        Base _load() {
            assert(x == 1, x.text);     //
core.exception.AssertError...
May 17, 2023
Learn »
...1';
  assert(chr == '!');
  
  //char test = f; // Error: cannot implicitly convert expression
  //assert...
May 15, 2023
General »
...scope...
            assert(rc1 == 5);
            assert(rc1._refCounted._store._count == 1);
            auto rc2 = rc1;
            assert(rc1...
May 15, 2023
General »
...ByteOrder.littleEndian);
		assert(a == 10);
		position = 2;
		ubyte b = stream.get!ubyte;
		assert(b == 33...
May 14, 2023
Announce »
...he'd used `if(__ctfe} { // code } else assert(0)`. Átila thinks the contract is a...
May 13, 2023
Issues »
...oops");
            else
                return 1;
        }());
    catch (Exception e) {}
    assert(5 !in aa);
}
////////////////////////////////////////////

This allows bypassing the...
May 12, 2023
Issues »
...this); }

struct A
{
    @property ref NC value() { assert(false); }
    alias value this;
}

A a;

ref...
May 12, 2023
Issues »
...S
{
    struct A
    {
        @property ref NC value() { assert(false); }
        alias value this;
    }
    A a;

    auto...
May 12, 2023
Issues »
...alternative definition of noreturn, e.g. `typeof(assert(false))`, I'm not sure that this...
78 79 80 81 82 83 84 85 86 87 88 89
Next ›   Last »