Search

March 19, 2023
Learn »
...MyStruct.str;
  alias2 = "2";

  import std.conv : text;
  assert(myStruct.ln.text == alias2);
}
```
SDB@79
March 19, 2023
Learn »
...variableWithALongName = 42;
alias alias1 = variableWithALongName;
alias1 = 43;
assert(variableWithALongName == 43);

struct MyStruct
{
    int memberWithALongName;
}
MyStruct...
March 19, 2023
Genel »
...meta : anySatisfy;
  static assert(!anySatisfy!(isTypeOf!Int, ubyte, uint, ulong));
  static assert(anySatisfy!(isTypeOf!Int...
March 17, 2023
Issues »
...n.re, n.im);
    assert(123 == n.re); // fails here
    assert(456 == n.im);
}
------
If...
March 16, 2023
Learn »
...return new_;
  }
  static void Destroy(Variable* v) {
    assert(v.constraints !is null, "bad Variable struct...
March 16, 2023
Issues »
...nick@geany.org

shared int x = 3;
    assert(x == 3);
    bool b = x == 3;
    int...
March 16, 2023
Learn »
...atomicOp!"+="(i, cast(size_t) 1);
        assert(i == 1);

Is the assert somehow thread-safe?
March 15, 2023
Issues »
...com

assert(asNormalizedPath("hi/").text == asNormalizedPath("hi").text);
    assert(buildNormalizedPath("hi/") == buildNormalizedPath("hi"));
    //assert(asNormalizedPath...
March 15, 2023
Issues »
...D(1);
    C[] a = [c, c, c];
    assert(a == [c, c, c]);
}
---


The compiler error...
March 15, 2023
General »
...d
import std;
static assert(isInstanceOf!(Array, Array!char)); // true
static assert(isInstanceOf!(Regex, Regex...
91 92 93 94 95 96 97 98 99 100 101 102
Next ›   Last »