May 22, 2023 General » assert error from core/sys/posix/sys/stat | |||
|---|---|---|---|
| |||
...posix/sys/stat.d(651): Error: static assert: `128u == 104u` is false ``` ldc version `1... | |||
May 22, 2023 General » Re: Good examples of version() algebra in real code | |||
|---|---|---|---|
| |||
...else version(linux) bar(); else version(fail_early) static assert(0); else assert(0); ``` :o) | |||
May 22, 2023 General » Re: Good examples of version() algebra in real code | |||
|---|---|---|---|
| |||
...option of using run-time guards like `assert(0)` / `throw new NotImplementedEx()` and even using... | |||
May 22, 2023 General » Re: Good examples of version() algebra in real code | |||
|---|---|---|---|
| |||
...in-d/Blog.Posted_2023_02_20.html#static-assert-patterns-arguably-harmful-for-porting | |||
May 22, 2023 General » Re: Good examples of version() algebra in real code | |||
|---|---|---|---|
| |||
...I prefer `static assert` to not be used, but the runtime `assert`. I have done... | |||
May 22, 2023 General » Re: Good examples of version() algebra in real code | |||
|---|---|---|---|
| |||
...Windows) enum ExtraFunctionality = false; else static assert(0, "system not accounted for"); ``` (forgot to... | |||
May 22, 2023 General » Re: Good examples of version() algebra in real code | |||
|---|---|---|---|
| |||
...false; else static assert(0, "system not accounted for"); The static assert is there because... | |||
May 20, 2023 Issues » [Issue 23932] New: Slot is allocated before evaluating the value during associative array initialization | |||
|---|---|---|---|
| |||
...e) {}
}
}
void main()
{
auto c = new C;
assert(c.aa.length == 0);
}
////////////////////////////////////////////////
This allows obtaining... | |||
May 20, 2023 Issues » [Issue 23930] New: assert(0) passed to function with noreturn parameter causes segfault | |||
|---|---|---|---|
| |||
...cgi?id=23930
Issue ID: 23930
Summary: assert(0) passed to function with noreturn parameter... | |||
May 20, 2023 Issues » [Issue 23929] New: in operator on noreturn associative array causes dmd crash | |||
|---|---|---|---|
| |||
...elpenguino+D@gmail.com
A simple one-liner:
```
if (assert(0) in int[noreturn].init) {}
```
-- | |||
Copyright © 1999-2021 by the D Language Foundation