Search

June 19, 2023
Learn »
...int m;

static assert(is(typeof(c[0]) == const(int)));
static assert(is(typeof(i...
June 19, 2023
Learn »
...d1);
    assert(d1 is null);

    auto d2 = createInstance(42);
    writeln(d2.field);

    deleteInstance(d2);
    assert...
June 17, 2023
General »
...simpler to make a new handler using `assert(0)`. I also think it can be...
June 16, 2023
Issues »
...Comment #2 from timon.gehr@gmx.ch ---
`assert(expr)` does not fit the bill because...
June 16, 2023
Issues »
...from elpenguino+D@gmail.com ---
I think assert(expr) could provide this functionality. Maybe with...
June 16, 2023
General »
...require the expression and message in an `assert` to be `pure` and `const`. That would...
June 16, 2023
General »
...cannot affect values:
```d
int x = 0;
assert(x == 0); // passes
auto dg = () const => x...
June 16, 2023
General »
LDC can't see the assertion at all, it's gone by the time the...
June 16, 2023
General »
...are all over the place. For instance:

```
assert([0, 1, 2, 3].slide(2).equal...
June 16, 2023
Learn »
...return this_;
  }

  string name;
}

auto m = Man();
assert(m.name == defaultName);
```

Do note that one...
70 71 72 73 74 75 76 77 78 79 80 81
Next ›   Last »