March 28, 2023 Issues » [Issue 23440] closure over typesafe variadic or scope array passes safe though leads to stack corruption | |||
|---|---|---|---|
| |||
...safe foo(scope int[] stuff) @safe {
return () {
assert(stuff == [1,2,3]);
foreach(item; stuff... | |||
March 27, 2023 Issues » [Issue 10892] Compilation continues after static assert failing in templates | |||
|---|---|---|---|
| |||
...scope, so the expectation that the static assert is evaluated before the enum declaration is... | |||
March 24, 2023 Learn » Re: Implicit type conversion depending on assignment | |||
|---|---|---|---|
| |||
...Tarih.AY;
date.month.write("/");
assert(date["month"] != Tarih.AY);
assert(date["month"].type == typeid... | |||
March 24, 2023 General » Re: It's basically Hindley-Milner. | |||
|---|---|---|---|
| |||
...V))
alias opResolveAlias = Vec3!V;
else
static assert(0);
}
}
```
The `Vec3` function has another template... | |||
March 23, 2023 Learn » Re: Implicit type conversion depending on assignment | |||
|---|---|---|---|
| |||
...return convto!T(value) + rhs;
else
static assert(0);
}
alias opBinary this;
}
void main()
{
auto... | |||
March 22, 2023 Issues » [Issue 23800] New: -checkaction=context asserts on deprecated type comparisons should not trigger deprecation messages | |||
|---|---|---|---|
| |||
...The workaround is to change the assert to `assert((T(1) == T(1)) == true);` But... | |||
March 21, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...void main() {
alias five = identity!5;
static assert(is(five == identity!y, int y) && y... | |||
March 21, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...is not a type. So the static assert above would be false even if the... | |||
March 21, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...void foo() {
enum five = identity!5;
static assert(is(five == identity!y, int y) && y... | |||
March 21, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...void foo() {
enum five = identity!5;
static assert(is(five == identity!y, int y) && y... | |||
Copyright © 1999-2021 by the D Language Foundation