January 13, 2023 Issues » [Issue 519] Invariant not called from autogenerated class/struct constructor/destructor | |||
|---|---|---|---|
| |||
...would become
```d
{
auto result = T(args...);
assert(() @trusted { return &result; }());
return result;
}()
```
The @trusted... | |||
January 13, 2023 Learn » Re: Why not allow elementwise operations on tuples? | |||
|---|---|---|---|
| |||
...2,3);
assert(v1 == v2);
// Unary operations
assert(-v1 == vec(-1, -2, -3));
assert(++v2... | |||
January 13, 2023 Learn » Re: Creating a pointer/slice to a specific-size buffer? (Handing out a page/frame from a memory manager) | |||
|---|---|---|---|
| |||
...better?
```d
struct Frame
{
ubyte[] data;
invariant
{
assert(data.length == PAGE_SIZE);
}
}
class BufferPool
{
align... | |||
January 13, 2023 Learn » Should importC fail on invalid C code? | |||
|---|---|---|---|
| |||
...X 1
}
```
`imc.d`
```
unittest {
import myccode;
assert (false, "Should img.c really compile?");
}
```
```
dmd... | |||
January 12, 2023 Learn » Re: Nested sibling classes | |||
|---|---|---|---|
| |||
...auto C = new a.c; assert(B.C.i == 10); assert(C.i == 10); return... | |||
January 12, 2023 General » Re: phobos's circle CI runs a busted version of DMD | |||
|---|---|---|---|
| |||
...t >>= bits; assert(v1.t == -1); // okay, because signed type v1.u >>= bits; assert(v1... | |||
January 12, 2023 General » Re: phobos's circle CI runs a busted version of DMD | |||
|---|---|---|---|
| |||
...0x80; ub >>= 1u; assert (ub == 0x40); ushort us; us = 0x8000; us >>= 1u; assert (us == 0x4000... | |||
January 12, 2023 Issues » [Issue 23509] ImportC: Unable to parse GLibC assert.h's assert (and other nontrivial macros?) | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23509 Thomas Brix Larsen <brix@brix-verden... | |||
January 12, 2023 General » Re: ImportC and .h files | |||
|---|---|---|---|
| |||
...includes math.h or uses the assert macro from assert.h fails to compile: - https... | |||
January 12, 2023 Issues » [Issue 23509] ImportC: Unable to parse GLibC assert.h's assert (and other nontrivial macros?) | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23509 Krzysztof Jajeśnica <krzysztof.jajesnica@student.put... | |||
Copyright © 1999-2021 by the D Language Foundation