March 19, 2023 Learn » Re: alias Error: need 'this' | |||
|---|---|---|---|
| |||
...MyStruct.str; alias2 = "2"; import std.conv : text; assert(myStruct.ln.text == alias2); } ``` SDB@79 | |||
March 19, 2023 Learn » alias Error: need 'this' | |||
|---|---|---|---|
| |||
...variableWithALongName = 42;
alias alias1 = variableWithALongName;
alias1 = 43;
assert(variableWithALongName == 43);
struct MyStruct
{
int memberWithALongName;
}
MyStruct... | |||
March 19, 2023 Genel » Meta kodlama üzerine bir soru | |||
|---|---|---|---|
| |||
...meta : anySatisfy; static assert(!anySatisfy!(isTypeOf!Int, ubyte, uint, ulong)); static assert(anySatisfy!(isTypeOf!Int... | |||
March 17, 2023 Issues » [Issue 23788] New: Win64 problem with constructor for __c_complex_float | |||
|---|---|---|---|
| |||
...n.re, n.im);
assert(123 == n.re); // fails here
assert(456 == n.im);
}
------
If... | |||
March 16, 2023 Learn » Global thread-local free-list allocator | |||
|---|---|---|---|
| |||
...return new_;
}
static void Destroy(Variable* v) {
assert(v.constraints !is null, "bad Variable struct... | |||
March 16, 2023 Issues » [Issue 23783] New: -preview=nosharedaccess does not detect comparison of shared data | |||
|---|---|---|---|
| |||
...nick@geany.org
shared int x = 3;
assert(x == 3);
bool b = x == 3;
int... | |||
March 16, 2023 Learn » Is comparison of shared data thread-safe? | |||
|---|---|---|---|
| |||
...atomicOp!"+="(i, cast(size_t) 1);
assert(i == 1);
Is the assert somehow thread-safe? | |||
March 15, 2023 Issues » [Issue 23782] New: asNormalizedPath equality is broken | |||
|---|---|---|---|
| |||
...com
assert(asNormalizedPath("hi/").text == asNormalizedPath("hi").text);
assert(buildNormalizedPath("hi/") == buildNormalizedPath("hi"));
//assert(asNormalizedPath... | |||
March 15, 2023 Issues » [Issue 22159] "==" causeses error for array of classes in safe method | |||
|---|---|---|---|
| |||
...D(1);
C[] a = [c, c, c];
assert(a == [c, c, c]);
}
---
The compiler error... | |||
March 15, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...d import std; static assert(isInstanceOf!(Array, Array!char)); // true static assert(isInstanceOf!(Regex, Regex... | |||
Copyright © 1999-2021 by the D Language Foundation