June 08, 2022 Genel » Re: std.traits ile yapılabilir mi? | |||
|---|---|---|---|
| |||
...var:
```d
static struct Stringish
{
string str;
alias str this;
}
static assert(!isSomeString!Stringish);
```
Bu... | |||
June 07, 2022 Issues » [Issue 23171] New: You can't use std.typecons.Typedef on __vector(*) type | |||
|---|---|---|---|
| |||
...std.typecons : Typedef;
import core.simd : double2;
alias fooBar = Typedef!double2;
void main()
{
fooBar foo... | |||
June 07, 2022 Issues » [Issue 23170] Array literal passed to map in lambda, then returned from nested function, is memory corrupted | |||
|---|---|---|---|
| |||
...result == [1, 2, 3]); } alias badMap = range => range.map!(a => a); alias dgify = (lazy value... | |||
June 07, 2022 Issues » [Issue 23170] Array literal passed to map in lambda, then returned from nested function, is memory corrupted | |||
|---|---|---|---|
| |||
...array[1] == 2);
assert(array[2] == 3);
}
alias badAlias = (int[] array) => id(array);
int[] id... | |||
June 07, 2022 Issues » [Issue 23170] New: Array literal passed to map in lambda, then returned from nested function, is memory corrupted | |||
|---|---|---|---|
| |||
...result == [1, 2, 3], result.to!string); } alias badMap = range => range.map!(a => a); Expected... | |||
June 07, 2022 Issues » [Issue 23167] New: inaccurate diagnostic for internal tuple bound violation | |||
|---|---|---|---|
| |||
...temp@gmx.com ## test case alias Seq(A...) = A; alias E = Seq!(int)[1]; ## output... | |||
June 06, 2022 Issues » [Issue 23164] New: [REG 2.097] Infinite loop on assertion failure + DMD moves struct with copy constructor | |||
|---|---|---|---|
| |||
...data;
}
~this ()
{
assert(this.ptr is &this);
}
alias opAssign = assign;
ref std_string assign () (const... | |||
June 06, 2022 Issues » [Issue 23163] New: Can't use AliasSeq instance as default template argument of template function | |||
|---|---|---|---|
| |||
...to compile:
---
alias AliasSeq(Args...) = Args;
void test(alias a = AliasSeq!(0))() {}
alias _ = test!();
---
The... | |||
June 06, 2022 Issues » [Issue 23162] New: cannot use new on a static array type that's aliased | |||
|---|---|---|---|
| |||
...com
## test case
```
void main(string[] args)
{
alias A = int[1];
new A;
}
```
## output
## notes... | |||
June 05, 2022 Issues » [Issue 23112] code passes @nogc, allocates anyway | |||
|---|---|---|---|
| |||
...another template getting expanded that escapes the alias reference. 4. this gets detected by the... | |||
Copyright © 1999-2021 by the D Language Foundation