January 09, 2023 Issues » [Issue 23611] Zombie heap leak proof of concept: linked list in dead resized array | |||
|---|---|---|---|
| |||
...slices to the data.
auto slice = link[0 .. $];
link.length = 1;
assert(slice[1] == parent);
-- | |||
January 09, 2023 General » Re: The future of Int128 support in D language | |||
|---|---|---|---|
| |||
...case you wonder who I am to assert this forcefully: I'm the guy who... | |||
January 09, 2023 General » Re: What should happen when the assert message expression throws? | |||
|---|---|---|---|
| |||
...const. * Therefore, the assert always fails. (It must not be treated like assert(false), tho... | |||
January 08, 2023 Learn » enum functions | |||
|---|---|---|---|
| |||
...i) => i >> 1;
}
import std;
void main()
{
assert(oneHalf(42) == 21);
42.foo!int... | |||
January 08, 2023 Learn » Why does this code only work with `std.conv.to` whilst not with `cast`? | |||
|---|---|---|---|
| |||
...ICustomDrawable {
...
void addChild(T)(T child) {
static assert(is(T : ICustomDrawable), "Invalid type T for... | |||
January 08, 2023 Issues » [Issue 23218] ICE: src/dmd/backend/cgxmm.d:1373: Assertion `0' failed. | |||
|---|---|---|---|
| |||
...d:1373 assert fail" fixing this issue: - fix Issue 23218 - cgxmm.d:1373 assert fail... | |||
January 07, 2023 Issues » [Issue 23604] New: iota's floating point implementation does not conform to documentation | |||
|---|---|---|---|
| |||
...void test(T)() {
assert(iota(T(1), T(2), T(-1)).empty);
assert(iota(T... | |||
January 07, 2023 Learn » Re: Bug or feature? iota has different semantics for integer and float arguments | |||
|---|---|---|---|
| |||
...culprit is this assert in the `in` block of the fp implementation: ``` assert((end - begin... | |||
January 07, 2023 Learn » Re: how to use dmd.lexer.Lexer | |||
|---|---|---|---|
| |||
...token.value;
} while (lexer.nextToken != TOK.endOfFile);
assert(result == expected);
}
```
And then just ``$ dub run``. | |||
January 07, 2023 General » My solution to the GC problem | |||
|---|---|---|---|
| |||
...myAlloc; //pseudocode static assert(__traits(isSame, allocof(hatesGC), allocof(hatesGC.name))); static assert(__traits(isSame... | |||
Copyright © 1999-2021 by the D Language Foundation