Search

April 01, 2023
General »
...break"?

i pretty much exclusively use "default: assert(0)"

If i have cases that do...
April 01, 2023
General »
...use `final switch`.
- Do some explicit action
- assert(0);
- enforce(0,"TODO: handle case")
- Do...
March 31, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=20784

Nick Treleaven <nick@geany.org> changed...
March 31, 2023
Issues »
...OutStatement with a static assert:

auto f()
out (r)
{
    static assert(is(typeof(r) : int...
March 31, 2023
Issues »
...not defined
static assert(!b); // result is false, not an error
static assert(is(int...
March 31, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=23773

Dlang Bot <dlang-bot@dlang.rocks...
March 31, 2023
General »
...dlang.org/changelog/2.085.0#assert](https://dlang.org/changelog/2.085.0#assert).
March 31, 2023
General »
...import std.regex;
    // import std.traits;
    // static assert(isInstanceOf!(Regex, Regex!char)); // now fails, not...
March 31, 2023
Learn »
...arr = [0, 1];
  arr.popFront;

  assert(arr.front == 1);
  assert(isInputRange!(typeof(arr)));
}
```

SDB@79
March 30, 2023
General »
...d
unittest {
    int x = 0, y = 5;
    assert(x == y);
}
```
```sh
dmd -main -unittest -checkaction...
88 89 90 91 92 93 94 95 96 97 98 99
Next ›   Last »