December 28, 2022 Issues » [Issue 23587] New: cast(void) doesn't work for noreturn | |||
|---|---|---|---|
| |||
...com
Reporter: artha@samerion.com
```
noreturn stuff() {
assert(false);
}
void doStuff(alias fun)() {
// This is... | |||
December 28, 2022 Learn » Re: Compile time vs run time -- what is the difference? | |||
|---|---|---|---|
| |||
...the 'assert blocks' you mention, D (like C++) has both static assert and runtime assert... | |||
December 28, 2022 Learn » Compile time vs run time -- what is the difference? | |||
|---|---|---|---|
| |||
...time such as exceptions, dividing by zero, assert blocks. In Java and some other languages... | |||
December 27, 2022 General » Re: D struct with String type accessing from Python | |||
|---|---|---|---|
| |||
...struct N {
ubyte[string.sizeof] b;
}
static assert(N.sizeof == string.sizeof);
N n;
memcpy... | |||
December 26, 2022 Genel » Mixin Template | |||
|---|---|---|---|
| |||
...foo; // v1 assert(foo.inner.value == 1); MyStruct!int bar = 1; // v2 assert(bar.value... | |||
December 25, 2022 General » Re: templated toString and class inheritance | |||
|---|---|---|---|
| |||
...wp) {
auto tsh = cast(ToStringWriter!W) *p;
assert(tsh, "Invalid ToStringWriter: "~WNAME);
tsh.writeWith(writer... | |||
December 24, 2022 Learn » Re: Confusion about `Random` | |||
|---|---|---|---|
| |||
...return opMap["÷"](foldedDouble, second);
}
void main()
{
assert(6.doubleAndDivide(3) == 4);
}
```
Don't you... | |||
December 24, 2022 Issues » [Issue 23578] New: Types are not matched to alias parameters in "is" expression | |||
|---|---|---|---|
| |||
...a);
else
static assert(false);
Output:
onlineapp.d(4): Error: static assert: `false` is false... | |||
December 24, 2022 Issues » [Issue 23577] New: Multiple template arguments are matched to a single parameter | |||
|---|---|---|---|
| |||
...msg, A);
static assert(false);
}
Output:
int
onlineapp.d(9): Error: static assert: `false` is... | |||
December 24, 2022 Issues » [Issue 23576] Better Error Message When Forgetting To Pass A Template Parameter | |||
|---|---|---|---|
| |||
...test3(E d)
{
byte x = 42;
assert(d == x);
assert(is(typeof(x... | |||
Copyright © 1999-2021 by the D Language Foundation