January 20, 2023 Learn » What is the 'Result' type even for? | |||
|---|---|---|---|
| |||
...string[] e = ["a", "b", "c", "d", "e"];
assert(c.equal(e));
typeof(c).stringof.writeln... | |||
January 19, 2023 General » Re: Small suggestion for default constructors | |||
|---|---|---|---|
| |||
...auto s1 = S();
assert(s1.fun() == 1); // ok
auto s2 = S.init;
assert(s2.fun... | |||
January 19, 2023 General » Re: New blog post on the cost of compile time | |||
|---|---|---|---|
| |||
...R == return))
alias RT = R;
else
static assert(false, "bad");
}
...
else version(useIsExpr)
{
enum isInputRange... | |||
January 19, 2023 General » Re: Trying to use Mir ion, its a perfect example of the failure of D's attribute system | |||
|---|---|---|---|
| |||
...map!(c => GridBlockSerial(cast(GridBlock)c))(); static assert(is(ElementType!(typeof(r)) == GridBlockSerial)); // trustRange wraps... | |||
January 18, 2023 General » Re: New blog post on the cost of compile time | |||
|---|---|---|---|
| |||
...R == return))
alias ReturnType = R;
else
static assert(0, "argument has no return type");
}
ReturnType... | |||
January 17, 2023 General » Re: Small suggestion for default constructors | |||
|---|---|---|---|
| |||
...1, 2, 3);
assert(foo.x == 1);
assert(foo.y == 2);
assert(foo.z == 3);
} | |||
January 17, 2023 General » Re: Multiple alias this and alias this in classes | |||
|---|---|---|---|
| |||
...S!0 s;
writeln(s.has500);
static assert(!is(typeof(s.has501)));
}
I.e., there... | |||
January 16, 2023 General » Re: Hrdcoded | |||
|---|---|---|---|
| |||
...uint(value);
writePos += uint.sizeof;
}
uint readUint()
{
assert(readPos == 0);
uint value = littleEndianToNative!uint(cast... | |||
January 16, 2023 General » Hrdcoded | |||
|---|---|---|---|
| |||
...I'm a bit confused.
uint read()
{
assert(pos == 68);
uint value = littleEndianToNative!uint(cast... | |||
January 16, 2023 General » Re: Should have @property | |||
|---|---|---|---|
| |||
...1; int[Index!int(2)()] b = 2; static assert(a.length < b.length); } ``` SDB@79 | |||
Copyright © 1999-2021 by the D Language Foundation