February 12, 2023 Issues » [Issue 23695] New: compilable/ctests2.c:131:14: error: expected ‘;’ before ‘b’ | |||
|---|---|---|---|
| |||
...a;
_Static_assert(sizeof(a) == sizeof(short), "1");
typeof(a) b;
_Static_assert(sizeof(b... | |||
February 12, 2023 Issues » [Issue 23694] New: compilable/ctests2.c:51:9: error: initializer element is not constant | |||
|---|---|---|---|
| |||
...here (not in a function)
4 | _Static_assert(ABC == 3, "1");
| ^~~
compilable/cppflags.c:4... | |||
February 12, 2023 Issues » [Issue 23693] New: compilable/testcstuff3.i:7:1: error: stray '#' in program | |||
|---|---|---|---|
| |||
...var; #1040 "cstuff3.c" 3 4 }; _Static_assert(U'\U00011234' == 0x11234, "ok"); // sppn.exe doesn... | |||
February 12, 2023 Issues » [Issue 23691] New: compilable/test22294.i:16:1: error: unknown type name 'this' | |||
|---|---|---|---|
| |||
...whatever
enum { Ax, Bx, Cx };
#pragma
_Static_assert(Ax == 0 && Bx == 1 && Cx == 2, "in... | |||
February 09, 2023 General » Re: preview in: it seems that return type auto solves scope variable assignment to this | |||
|---|---|---|---|
| |||
...projects/d";
scope string p2 = expandTilde(p1);
assert(p1 != p2);
}
```
In this case, following error... | |||
February 09, 2023 Learn » Re: staticMap but with two arguments | |||
|---|---|---|---|
| |||
...enum N = count(t.stringof, ',') + 1;
static assert(N == 1); // FAILS
}
Same thing with any... | |||
February 09, 2023 Learn » Re: staticMap but with two arguments | |||
|---|---|---|---|
| |||
...fun, args...)
{
static assert(N != 0, "N must be non-zero.");
static assert((args.length... | |||
February 09, 2023 Learn » toString best practices | |||
|---|---|---|---|
| |||
...writer, ")");
}
}
void main(){
import std.format : format;
assert( format("%s", Point!int(1,2)) == "(1... | |||
February 09, 2023 General » preview in: it seems that return type auto solves scope variable assignment to this | |||
|---|---|---|---|
| |||
...path);
}
}
unittest {
assert(Path("my", "dir", "42").isInside(Path("my", "dir")) == true);
assert(Path("my... | |||
February 09, 2023 Genel » Yeni staticMap Uygulaması | |||
|---|---|---|---|
| |||
...assert(is(typeof(values[0].data) == byte)); assert(is(typeof(values[1].data) == short)); assert... | |||
Copyright © 1999-2021 by the D Language Foundation