November 08, 2021 Issues » [Issue 21039] `alias this` returns 'null' for ref types when put into array initializer | |||
|---|---|---|---|
| |||
...dmd pull request #13277 "Fix Issue 21039 - `alias this` returns 'null' for ref types when... | |||
November 06, 2021 Learn » Re: Completing C code with D style | |||
|---|---|---|---|
| |||
...std.algorithm : map;
import std.array : array;
alias NonZero(T) = Nullable!(T, 0);
NonZero!int... | |||
November 06, 2021 Learn » Re: Completing C code with D style | |||
|---|---|---|---|
| |||
...else {
auto numbers = [-2, -1, 1, 2];
}
alias match = (ns, s, p) => ns.equal(numbers... | |||
November 06, 2021 General » Re: dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead | |||
|---|---|---|---|
| |||
...3. IMHO, one grapheme should be and alias to ubyte[] or to one BigInt; 4... | |||
November 04, 2021 General » Re: Forward ranges in Phobos v2 | |||
|---|---|---|---|
| |||
...bool. Not immutable(bool), not something that alias this to bool, none of that sort... | |||
November 04, 2021 Issues » [Issue 22327] [Templates] arguments of T[] literals work for exactly one initialization before being set in stone | |||
|---|---|---|---|
| |||
...foo(T, T[] somedata_) {}
alias bar = foo!(int, [1, 2, 3]);
alias faz = foo!(string... | |||
November 04, 2021 General » Re: Forward ranges in Phobos v2 | |||
|---|---|---|---|
| |||
...function as a subtype of `T` (either via `alias this` or some more principled mechanism). | |||
November 04, 2021 General » Re: Forward ranges in Phobos v2 | |||
|---|---|---|---|
| |||
...it easily? I'm not very sure. Alias this is just poorly done. I think... | |||
November 04, 2021 General » Re: Phobos version naming | |||
|---|---|---|---|
| |||
Just an private `alias`,where is break? `version std0=std2021`,is so easy. `std.v2... | |||
November 04, 2021 General » Re: Forward ranges in Phobos v2 | |||
|---|---|---|---|
| |||
...ref inout(T) deref() inout
{
return *ptr;
}
alias deref this;
}
I've tested some simple... | |||
Copyright © 1999-2021 by the D Language Foundation