Search

January 13, 2023
Issues »
...would become
```d
{
    auto result = T(args...);
    assert(() @trusted { return &result; }());
    return result;
}()
```

The @trusted...
January 13, 2023
Learn »
...2,3);
    assert(v1 == v2);

    // Unary operations
    assert(-v1 == vec(-1, -2, -3));
    assert(++v2...
January 13, 2023
Learn »
...better?

```d
struct Frame
{
	ubyte[] data;

	invariant
	{
		assert(data.length == PAGE_SIZE);
	}
}

class BufferPool
{
	align...
January 13, 2023
Learn »
...X 1
}
```

`imc.d`
```
unittest {
   import myccode;
   assert (false, "Should img.c really compile?");
}
```

```
dmd...
January 12, 2023
Learn »
...auto C = new a.c;

  assert(B.C.i == 10);
  assert(C.i == 10);

  return...
January 12, 2023
General »
...t >>= bits;
  assert(v1.t == -1); // okay, because signed type

  v1.u >>= bits;
  assert(v1...
January 12, 2023
General »
...0x80;
   ub >>= 1u;
   assert (ub == 0x40);
   ushort us;
   us = 0x8000;
   us >>= 1u;
   assert (us == 0x4000...
January 12, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=23509

Thomas Brix Larsen <brix@brix-verden...
January 12, 2023
General »
...includes math.h or uses the assert macro from assert.h fails to compile:

- https...
January 12, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=23509

Krzysztof Jajeśnica <krzysztof.jajesnica@student.put...
109 110 111 112 113 114 115 116 117 118 119
Next ›   Last »